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))
def test_flag_disabled_false(self): self.assertFalse(flag_disabled('FLAG_ENABLED', request=self.request))
def test_flag_disabled_no_request(self): self.assertTrue(flag_disabled('FLAG_DISABLED'))
def test_flag_disabled_true(self): self.assertTrue(flag_disabled('FLAG_DISABLED', request=self.request))