MCPcopy Create free account
hub / github.com/bpython/bpython / test_last_word

Method test_last_word

bpython/test/test_curtsies_repl.py:85–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertEqual(self.repl.current_line, "abcde3")
84
85 def test_last_word(self):
86 self.assertEqual(curtsiesrepl._last_word(""), "")
87 self.assertEqual(curtsiesrepl._last_word(" "), "")
88 self.assertEqual(curtsiesrepl._last_word("a"), "a")
89 self.assertEqual(curtsiesrepl._last_word("a b"), "b")
90
91 @unittest.skip("this is the behavior of bash - not currently implemented")
92 def test_get_last_word_with_prev_line(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected