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