コード例 #1
0
ファイル: test_github.py プロジェクト: nejucomo/leastbot
    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)