コード例 #1
0
 def test_get_events_with_attendees_returns_empty_list_for_events_with_no_attendees(self):
     events = [
         {'summary': 'Empty event with no attendees'},
         {'summary': 'Empty event with no attendees'}
     ]
     calendar_google = CalendarGoogle(config, '')
     self.assertEquals(calendar_google.get_events_with_attendees(events), [])
コード例 #2
0
 def test_get_events_with_attendees_returns_proper_response_with_attended_meetings_only(
         self):
     events = [{'summary': 'Empty event with no attendees'}]
     proper_event = {'summary': 'Event with attendees', 'attendees': True}
     events.append(proper_event)
     calendar_google = CalendarGoogle(config, '')
     self.assertEquals(calendar_google.get_events_with_attendees(events),
                       [proper_event])
コード例 #3
0
 def test_get_events_with_attendees_returns_proper_response_with_attended_meetings_only(self):
     events = [
         {'summary': 'Empty event with no attendees'}
     ]
     proper_event = {'summary': 'Event with attendees', 'attendees': True}
     events.append(proper_event)
     calendar_google = CalendarGoogle(config, '')
     self.assertEquals(calendar_google.get_events_with_attendees(events), [proper_event])
コード例 #4
0
 def test_get_events_with_attendees_returns_empty_list_for_events_with_no_attendees(
         self):
     events = [{
         'summary': 'Empty event with no attendees'
     }, {
         'summary': 'Empty event with no attendees'
     }]
     calendar_google = CalendarGoogle(config, '')
     self.assertEquals(calendar_google.get_events_with_attendees(events),
                       [])