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), [])
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])
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])
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), [])