def test_maps_enrollment_date_to_event(self): now = datetime.now() self.row['enrollment_date'] = now assert Mapper.to_event(self.row).enrollment_date == now
def test_maps_date_to_event(self): now = datetime.now() self.row['date'] = now assert Mapper.to_event(self.row).date == now
def test_notification_status_to_event(self): self.row['notification_sent'] = True assert Mapper.to_event(self.row).notification_sent == True
def test_maps_title_to_event(self): self.row['title'] = 'Cool event' assert Mapper.to_event(self.row).title == 'Cool event'
def test_maps_id_to_event(self): self.row['id'] = '*****@*****.**' assert Mapper.to_event(self.row).id == '*****@*****.**'