Beispiel #1
0
 def test_affected_flags_missing(self):
     request = RequestFactory().get('')
     self.assertIs(flag_is_affected(request, 'test_flag'), False)
Beispiel #2
0
 def test_active(self):
     request = RequestFactory().get('')
     request.affected_flags = ['test_flag']
     self.assertIs(flag_is_affected(request, 'test_flag'), True)
     self.assertIs(flag_is_affected(request, 'other_flag'), False)