def test_all_vectors(self): for evspec in self.Vectors: evid = evspec['id'] evtype = evspec['name'] evinfo = evspec['info'] expectedformat = '\n'.join(evspec['expectedlines']) result = github.format_event(evid, evtype, evinfo) self.assertEqual(result, expectedformat)
def handle_github_notification(self, eventid, name, details): message = github.format_event(eventid, name, details) self.say(self._channel, message)