Exemple #1
0
 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?
Exemple #2
0
    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?
Exemple #3
0
 def test_readline_version(self):
     self.assertNotEqual(readline.readline_version(), 0)
Exemple #4
0
 def test_readline_version(self):
     self.assertNotEqual(readline.readline_version(), 0)