comparison tests/unit.py @ 34:79aca36abd9a

fill in defaults if not present
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 09:30:56 -0700
parents b7d6a90b0bb5
children d218df4d0b4c
comparison
equal deleted inserted replaced
33:b7d6a90b0bb5 34:79aca36abd9a
51 json_provider = example.configuration_provider('json') 51 json_provider = example.configuration_provider('json')
52 self.assertTrue(isinstance(json_provider, configuration.JSON)) 52 self.assertTrue(isinstance(json_provider, configuration.JSON))
53 53
54 # serialize to a temporary file 54 # serialize to a temporary file
55 filename = tempfile.mktemp() 55 filename = tempfile.mktemp()
56 config = {'browser_path': '/home/jhammel/bin/firefox',
57 'activeTests': ['ts']}
58 example(config)
59 config['test_timeout'] = 1200 # default
60 self.assertEqual(config, example.config)
56 if os.path.exists(filename): 61 if os.path.exists(filename):
57 os.remove(filename) 62 os.remove(filename)
58 63
59 if __name__ == '__main__': 64 if __name__ == '__main__':
60 unittest.main() 65 unittest.main()