Exemple #1
0
 def test_flag_disabled_false(self):
     with patch('flags.template_functions.flag_enabled',
                return_value=False):
         self.assertTrue(flag_disabled(self.request, self.flag_name))
Exemple #2
0
 def test_flag_disabled_false(self):
     self.assertFalse(flag_disabled('FLAG_ENABLED', request=self.request))
Exemple #3
0
 def test_flag_disabled_no_request(self):
     self.assertTrue(flag_disabled('FLAG_DISABLED'))
Exemple #4
0
 def test_flag_disabled_true(self):
     self.assertTrue(flag_disabled('FLAG_DISABLED', request=self.request))