comparison tests/unit.py @ 38:8909ae1cc4ea

fix serialization (stub) tests
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 10:28:02 -0700
parents a1f8dec4d4f9
children 3c91bf85adb5
comparison
equal deleted inserted replaced
37:a1f8dec4d4f9 38:8909ae1cc4ea
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(suffix='.json') 55 filename = tempfile.mktemp(suffix='.json')
56 self.assertEqual(example.filename2format(filename), 'json')
56 self.assertFalse(os.path.exists(filename)) 57 self.assertFalse(os.path.exists(filename))
57 config = {'browser_path': '/home/jhammel/bin/firefox', 58 config = {'browser_path': '/home/jhammel/bin/firefox',
58 'activeTests': ['ts']} 59 'activeTests': ['ts']}
59 example(config) 60 example(config)
60 config['test_timeout'] = 1200 # default 61 config['test_timeout'] = 1200 # default