def test_should_not_set_nonexistant_global_options(self): config.app_globals.OPTIONS = {'foo':1} config.set_opt('bar',2) self.assertFalse('bar' in app_globals.OPTIONS.keys())
def test_should_set_global_options(self): config.app_globals.OPTIONS = {'foo':1} config.set_opt('foo',2) self.assertEqual(config.app_globals.OPTIONS['foo'], 2)