Пример #1
0
 def test_shouldRespond_topicWithSpaces(self):
     self.assertEquals(('danger zone', 8),
                       bomb.shouldRespond('obot danger zone bomb 8'))
Пример #2
0
 def test_shouldRespond_noCount(self):
     self.assertEquals(('dangerzone', bomb.DEFAULT_BOMB_COUNT),
                       bomb.shouldRespond('obot dangerzone bomb'))
Пример #3
0
 def test_shouldRespond_countAndTopic(self):
     self.assertEquals(('loggins', 8),
                       bomb.shouldRespond('obot loggins bomb 8'))
Пример #4
0
 def test_shouldRespond_notRelevant(self):
     self.assertEquals((None, None),
                       bomb.shouldRespond('obot is going to the moon'))
Пример #5
0
 def test_shouldRespond_noTopic(self):
     self.assertEquals((bomb.DEFAULT_BOMB_TOPIC, 10),
                       bomb.shouldRespond('obot bomb 10'))
Пример #6
0
 def test_shouldRespond_topicWithSpaces(self):
     self.assertEquals(("danger zone", 8), bomb.shouldRespond("obot danger zone bomb 8"))
Пример #7
0
 def test_shouldRespond_emptyString(self):
     self.assertEquals((None, None), bomb.shouldRespond(''))
Пример #8
0
 def test_shouldRespond_countAndTopic(self):
     self.assertEquals(("loggins", 8), bomb.shouldRespond("obot loggins bomb 8"))
Пример #9
0
 def test_shouldRespond_noCount(self):
     self.assertEquals(("dangerzone", bomb.DEFAULT_BOMB_COUNT), bomb.shouldRespond("obot dangerzone bomb"))
Пример #10
0
 def test_shouldRespond_noTopic(self):
     self.assertEquals((bomb.DEFAULT_BOMB_TOPIC, 10), bomb.shouldRespond("obot bomb 10"))
Пример #11
0
 def test_shouldRespond_notRelevant(self):
     self.assertEquals((None, None), bomb.shouldRespond("obot is going to the moon"))
Пример #12
0
 def test_shouldRespond_emptyString(self):
     self.assertEquals((None, None), bomb.shouldRespond(""))