예제 #1
0
    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)
예제 #2
0
파일: irc.py 프로젝트: nejucomo/leastbot
 def handle_github_notification(self, eventid, name, details):
     message = github.format_event(eventid, name, details)
     self.say(self._channel, message)