def test_empty_string(self): def func(text, quote_char): return '' self.mkfile('fr ed.txt') self.mkfile('fr ed.gif') completer.filename_dequoting_function = func completion.line_buffer = 'fr\\ ' readline.complete_internal(TAB) if readline.readline_version() >= 0x0602: self.assertEqual(completion.line_buffer, "fr\\ ") else: self.assertEqual(completion.line_buffer, "'fr ed.") # XXX Match?
def test_readline_version(self): self.assertNotEqual(readline.readline_version(), 0)