예제 #1
0
 def test_if_field_not_in_get_public_settings_it_value_not_to_be_in_response(
         self):
     response = views.get_public_settings()
     self.assertFalse('SECRET' in response['WALDUR_EXTENSION_3'])
예제 #2
0
 def test_if_extension_have_field_enabled_and_it_equally_false_this_extension_not_to_be_in_response(
         self):
     response = views.get_public_settings()
     self.assertFalse('WALDUR_EXTENSION_1' in response.keys())
예제 #3
0
 def test_if_field_in_get_public_settings_it_value_must_by_in_response(
         self):
     response = views.get_public_settings()
     self.assertTrue('INFO' in response['WALDUR_EXTENSION_3'])
예제 #4
0
 def test_if_extension_not_have_field_enabled_or_it_equally_true_this_extension_must_by_in_response(
         self):
     response = views.get_public_settings()
     self.assertTrue('WALDUR_EXTENSION_2' in response.keys())
     self.assertTrue('WALDUR_EXTENSION_3' in response.keys())