def test_get_accepted_events_returns_empty_list_for_not_accepted_meeting(self): events = [ { 'summary': 'Event with attendees', 'attendees': [ {'responseStatus': 'pending', 'self': True} ] } ] self.assertEquals(CalendarGoogle.get_accepted_events(events), [])
def test_get_accepted_events_returns_empty_list_for_not_accepted_meeting( self): events = [{ 'summary': 'Event with attendees', 'attendees': [{ 'responseStatus': 'pending', 'self': True }] }] self.assertEquals(CalendarGoogle.get_accepted_events(events), [])
def test_get_accepted_events_returns_proper_response(self): events = [ { 'summary': 'Event with attendees', 'attendees': [ {'responseStatus': 'pending', 'self': True} ] } ] accepted_event = { 'summary': 'Accepted event with attendees', 'attendees': [ {'responseStatus': 'accepted', 'self': True} ] } events.append(accepted_event) self.assertEquals(CalendarGoogle.get_accepted_events(events), [accepted_event])
def test_get_accepted_events_returns_proper_response(self): events = [{ 'summary': 'Event with attendees', 'attendees': [{ 'responseStatus': 'pending', 'self': True }] }] accepted_event = { 'summary': 'Accepted event with attendees', 'attendees': [{ 'responseStatus': 'accepted', 'self': True }] } events.append(accepted_event) self.assertEquals(CalendarGoogle.get_accepted_events(events), [accepted_event])