Esempio n. 1
0
 def test_shouldRespond_extra_space_at_beginning(self):
     self.assertEquals(False,
                       metro.shouldRespond('      obot    / show me metro'))
Esempio n. 2
0
 def test_shouldRespond_extra_space_between_words(self):
     self.assertTrue(metro.shouldRespond('obot    show me     metro'))
Esempio n. 3
0
 def test_shouldRespond_extra_space_at_beginning(self):
     self.assertTrue(metro.shouldRespond('      obot show me metro'))
Esempio n. 4
0
 def test_shouldRespond_false(self):
     self.assertEquals(
         False,
         metro.shouldRespond('my favorite command is "obot show me metro"'))
Esempio n. 5
0
 def test_shouldRespond_true(self):
     self.assertTrue(metro.shouldRespond('obot show me metro'))
Esempio n. 6
0
 def test_shouldRespond_obot(self):
     self.assertEquals(False,
                       metro.shouldRespond('obot image me dog laughing'))
Esempio n. 7
0
 def test_shouldRespond_not_relevant(self):
     self.assertEquals(False,
                       metro.shouldRespond('here is the ticket in jira'))
Esempio n. 8
0
 def test_shouldRespond_extra_space_at_beginning(self):
   self.assertEquals(False, metro.shouldRespond('      obot    / show me metro'))
Esempio n. 9
0
 def test_shouldRespond_empty_string(self):
     self.assertEquals(False, metro.shouldRespond(''))
Esempio n. 10
0
 def test_shouldRespond_extra_space_between_words(self):
   self.assertTrue(metro.shouldRespond('obot    show me     metro'))
Esempio n. 11
0
 def test_shouldRespond_extra_space_at_beginning(self):
   self.assertTrue(metro.shouldRespond('      obot show me metro'))
Esempio n. 12
0
 def test_shouldRespond_true(self):
   self.assertTrue(metro.shouldRespond('obot show me metro'))      
Esempio n. 13
0
 def test_shouldRespond_false(self):
   self.assertEquals(False, metro.shouldRespond('my favorite command is "obot show me metro"'))      
Esempio n. 14
0
 def test_shouldRespond_not_relevant(self):
   self.assertEquals(False, metro.shouldRespond('here is the ticket in jira'))
Esempio n. 15
0
 def test_shouldRespond_obot(self):
   self.assertEquals(False, metro.shouldRespond('obot image me dog laughing'))
Esempio n. 16
0
 def test_shouldRespond_empty_string(self):
   self.assertEquals(False, metro.shouldRespond(''))