def setUp(self): self.campus_event = ModelFactories.get_campus_event_test_object() self.url = reverse('create-or-update-event', args=[str(self.campus_event.id), 'campus']) self.data = { 'id': self.campus_event.id, 'name': 'TestName', 'date_start': '2999-04-14', 'date_end': '2999-04-15', 'http_link': '' }
def test_campus_event_description(self): new_campus_event = ModelFactories.get_campus_event_test_object() self.assertEqual(new_campus_event.__str__(), 'Campus Event Test Name')