comparison tests/unit.py @ 56:7f8e9c5d1606

introduce a somewhat redundant test
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 27 Mar 2012 14:56:54 -0700
parents 87bd539a21d3
children f7dc5cf2540c
comparison
equal deleted inserted replaced
55:87bd539a21d3 56:7f8e9c5d1606
119 example.parse([json_file] + args1) 119 example.parse([json_file] + args1)
120 config = json_config.copy() 120 config = json_config.copy()
121 config['browser_path'] = '/opt/bin/firefox' 121 config['browser_path'] = '/opt/bin/firefox'
122 self.assertEqual(example.config, config) 122 self.assertEqual(example.config, config)
123 123
124 # it shouldn't matter in which order the arguments are
125 example = ExampleConfiguration()
126 example.parse(args1 + [json_file])
127 self.assertEqual(example.config, config)
128
124 if __name__ == '__main__': 129 if __name__ == '__main__':
125 unittest.main() 130 unittest.main()