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