Mercurial > hg > configuration
comparison tests/unit.py @ 40:056280e7a6ea
stub munging configuration
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 27 Mar 2012 10:36:23 -0700 |
parents | 3c91bf85adb5 |
children | 1bd4ddf2e81d |
comparison
equal
deleted
inserted
replaced
39:3c91bf85adb5 | 40:056280e7a6ea |
---|---|
78 example() | 78 example() |
79 except configuration.MissingValueException, e: | 79 except configuration.MissingValueException, e: |
80 missingvalueexception = e | 80 missingvalueexception = e |
81 self.assertTrue(isinstance(e, configuration.MissingValueException)) | 81 self.assertTrue(isinstance(e, configuration.MissingValueException)) |
82 | 82 |
83 def test_multiple_configurations(self): | |
84 """test having multiple configurations""" | |
85 | |
86 example = ExampleConfiguration() | |
87 | |
88 # simple override | |
89 config1 = {'browser_path': '/home/jhammel/bin/firefox', | |
90 'activeTests': ['ts']} | |
91 args1 = ['-e', '/opt/bin/firefox'] | |
92 | |
83 if __name__ == '__main__': | 93 if __name__ == '__main__': |
84 unittest.main() | 94 unittest.main() |
85 | 95 |