def test_get_rsvps_from_event_bad_id(self): event = copy.deepcopy(EVENT) for id in None, 'not_a_tag_uri': event['id'] = id self.assert_equals([], Source.get_rsvps_from_event(event))
def test_get_rsvps_from_event(self): self.assert_equals([], Source.get_rsvps_from_event(EVENT)) self.assert_equals(RSVPS, Source.get_rsvps_from_event(EVENT_WITH_RSVPS))