Beispiel #1
0
 def test_set_option(self):
     set_option('opt', 'val')
     option = CustomOption.objects.get(name='opt', value='val')
     option.delete()
     
     set_global_option('opt', 'val')
     option = CustomOption.objects.get(name='opt', value='val')
     option.delete()
Beispiel #2
0
 def test_global_option(self):
     """
     Setting and getting GLOBAL options should be done with
     set_global_option() and get_global_option() functions
     """
     set_global_option('opt', 'val')
     value = get_global_option('opt')
     self.assertEqual(value, 'val')
Beispiel #3
0
 def test_global_option(self):
     set_global_option('opt', 'val')
     value = get_global_option('opt')
     self.assertEqual(value, 'val')