def test_after_clean_new_test_is_public(self): test = factories.EventFactory(type=Event.TYPE_TEST) employee = EmployeeFactory(user=test.author) employee.full_clean() test.full_clean() self.assertTrue(test.visible)
def test_new_exam_after_clean_is_public(self): exam = factories.EventFactory(type=Event.TYPE_EXAM) employee = EmployeeFactory(user=exam.author) employee.full_clean() exam.full_clean() self.assertTrue(exam.visible)