changeset 49:09fbc09455d4

fix broken test
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 13:00:14 -0700
parents 84fb8ad5ba81
children 113e8c2f7cab
files configuration/config.py tests/unit.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configuration/config.py	Tue Mar 27 12:50:16 2012 -0700
+++ b/configuration/config.py	Tue Mar 27 13:00:14 2012 -0700
@@ -289,6 +289,7 @@
                 parser_args['formatter'] = PlainDescriptionFormatter()
         parser_args.setdefault('option_class', ConfigurationOption)
         parser = optparse.OptionParser(**parser_args)
+        parser.parsed = set()
         self.optparse_options(parser)
 
         # TODO: add option(s) for configuration_providers
--- a/tests/unit.py	Tue Mar 27 12:50:16 2012 -0700
+++ b/tests/unit.py	Tue Mar 27 13:00:14 2012 -0700
@@ -83,7 +83,7 @@
             example.parse(args=[])
         except Exception, exception:
             pass
-        self.assertTrue(isinstance(exception, configuration.TypeCastException))
+        self.assertTrue(isinstance(exception, configuration.MissingValueException))
 
     def test_required(self):
         """ensure you have to have required values"""