示例#1
0
 def test_false_2(self):
     self.mock_get_facilities_config.return_value = {
         "fa1": {
             "exams_only": False,
             "ip_range": "foo"
         },
         "fa3": {
             "exams_only": True,
             "ip_range": "bar"
         }
     }
     self.assertFalse(exam.is_from_exams_only_facility(self.requset))
示例#2
0
 def test_false_2(self):
     self.mock_get_facilities_config.return_value = {
         "fa1": {"exams_only": False, "ip_range": "foo"},
         "fa3": {"exams_only": True, "ip_range": "bar"}}
     self.assertFalse(exam.is_from_exams_only_facility(self.requset))
示例#3
0
 def test_false(self):
     self.mock_get_facilities_config.return_value = dict()
     self.assertFalse(exam.is_from_exams_only_facility(self.requset))
示例#4
0
 def test_false(self):
     self.mock_get_facilities_config.return_value = dict()
     self.assertFalse(exam.is_from_exams_only_facility(self.requset))