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))
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))
def test_false(self): self.mock_get_facilities_config.return_value = dict() self.assertFalse(exam.is_from_exams_only_facility(self.requset))