コード例 #1
0
ファイル: test_telegram.py プロジェクト: p12tic/buildbot
 def test_list_notified_events(self):
     self.patch_send()
     channel = telegram.TelegramChannel(self.bot, self.CHANNEL)
     channel.notify_events = {'success'}
     yield channel.list_notified_events()
     self.assertEquals(
         self.sent[0][1],
         "The following events are being notified:\n🔔 **success**")
コード例 #2
0
ファイル: test_telegram.py プロジェクト: p12tic/buildbot
 def test_list_notified_events_empty(self):
     self.patch_send()
     channel = telegram.TelegramChannel(self.bot, self.CHANNEL)
     channel.notify_events = set()
     yield channel.list_notified_events()
     self.assertEquals(self.sent[0][1], "🔕 No events are being notified.")