Ejemplo n.º 1
0
 def test_last_word(self):
     self.assertEquals(curtsiesrepl._last_word(''), '')
     self.assertEquals(curtsiesrepl._last_word(' '), '')
     self.assertEquals(curtsiesrepl._last_word('a'), 'a')
     self.assertEquals(curtsiesrepl._last_word('a b'), 'b')
Ejemplo n.º 2
0
 def test_last_word(self):
     self.assertEquals(curtsiesrepl._last_word(''), '')
     self.assertEquals(curtsiesrepl._last_word(' '), '')
     self.assertEquals(curtsiesrepl._last_word('a'), 'a')
     self.assertEquals(curtsiesrepl._last_word('a b'), 'b')
Ejemplo n.º 3
0
 def test_last_word(self):
     self.assertEqual(curtsiesrepl._last_word(""), "")
     self.assertEqual(curtsiesrepl._last_word(" "), "")
     self.assertEqual(curtsiesrepl._last_word("a"), "a")
     self.assertEqual(curtsiesrepl._last_word("a b"), "b")