Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def test_maps_id(self):
     event = Event()
     event.id = '*****@*****.**'
     assert Mapper.to_row(event)['id'] == '*****@*****.**'
Exemplo n.º 3
0
 def test_maps_title_to_event(self):
     self.row['title'] = 'Cool event'
     assert Mapper.to_event(self.row).title == 'Cool event'
Exemplo n.º 4
0
 def test_maps_date_to_event(self):
     now = datetime.now() 
     self.row['date'] = now
     assert Mapper.to_event(self.row).date == now
Exemplo n.º 5
0
 def test_notification_status_to_event(self):
     self.row['notification_sent'] = True
     assert Mapper.to_event(self.row).notification_sent == True
Exemplo n.º 6
0
 def test_maps_id_to_event(self):
     self.row['id'] = '*****@*****.**'
     assert Mapper.to_event(self.row).id == '*****@*****.**'
Exemplo n.º 7
0
 def test_enrollment_date(self):
     event = Event()
     now = datetime.now()
     event.enrollment_date = now
     assert Mapper.to_row(event)['enrollment_date'] == now
Exemplo n.º 8
0
 def test_notification_status(self):
     event = Event()
     event.title = 'Cool title'
     assert Mapper.to_row(event)['title'] == 'Cool title'
Exemplo n.º 9
0
 def test_notification_status(self):
     event = Event()
     event.notification_sent = True
     assert Mapper.to_row(event)['notification_sent'] == True