示例#1
0
 def test_maps_id(self):
     event = Event()
     event.id = '*****@*****.**'
     assert Mapper.to_row(event)['id'] == '*****@*****.**'
示例#2
0
 def test_notification_status(self):
     event = Event()
     event.title = 'Cool title'
     assert Mapper.to_row(event)['title'] == 'Cool title'
示例#3
0
 def test_enrollment_date(self):
     event = Event()
     now = datetime.now()
     event.enrollment_date = now
     assert Mapper.to_row(event)['enrollment_date'] == now
示例#4
0
 def test_notification_status(self):
     event = Event()
     event.notification_sent = True
     assert Mapper.to_row(event)['notification_sent'] == True