예제 #1
0
 def setUp(self):
     FileSetup.setUp(self)
     reset()
     self.cmd = GPGKeys()
     self.cmd.preloop()
     completer.completer = completefilename
     completer.filename_dequoting_function = print_exc(backslash_dequote_filename)
     completer.filename_quoting_function = print_exc(backslash_quote_filename)
예제 #2
0
 def setUp(self):
     FileSetup.setUp(self)
     reset()
     self.cmd = Kmd()
     self.cmd.preloop()
     completer.completer = completefilename
     completer.filename_dequoting_function = print_exc(dequote_filename)
     completer.filename_quoting_function = print_exc(quote_filename)
예제 #3
0
파일: test_quoting.py 프로젝트: sim-pdf/kmd
 def setUp(self):
     FileSetup.setUp(self)
     reset()
     self.cmd = Kmd()
     self.cmd.preloop()
     completer.completer = completefilename
     completer.filename_dequoting_function = print_exc(backslash_dequote_filename)
     completer.filename_quoting_function = print_exc(backslash_quote_filename)
예제 #4
0
파일: test_generator.py 프로젝트: tony/rl
    def test_print_exc(self):
        def complete(text):
            """Test completer"""
            return []

        p = print_exc(complete)
        self.assertEqual(p.__name__, 'complete')
        self.assertEqual(p.__doc__, 'Test completer')

        self.assertEqual(p('test'), [])
예제 #5
0
    def test_print_exc(self):

        def complete(text):
            """Test completer"""
            return []

        p = print_exc(complete)
        self.assertEqual(p.__name__, 'complete')
        self.assertEqual(p.__doc__, 'Test completer')

        self.assertEqual(p('test'), [])