comparison tests/unit.py @ 49:09fbc09455d4

fix broken test
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 13:00:14 -0700
parents 84fb8ad5ba81
children 87bd539a21d3
comparison
equal deleted inserted replaced
48:84fb8ad5ba81 49:09fbc09455d4
81 exception = None 81 exception = None
82 try: 82 try:
83 example.parse(args=[]) 83 example.parse(args=[])
84 except Exception, exception: 84 except Exception, exception:
85 pass 85 pass
86 self.assertTrue(isinstance(exception, configuration.TypeCastException)) 86 self.assertTrue(isinstance(exception, configuration.MissingValueException))
87 87
88 def test_required(self): 88 def test_required(self):
89 """ensure you have to have required values""" 89 """ensure you have to have required values"""
90 90
91 example = ExampleConfiguration() 91 example = ExampleConfiguration()