示例#1
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(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(backslash_dequote_filename)
     completer.filename_quoting_function = print_exc(backslash_quote_filename)
示例#3
0
 def setUp(self):
     FileSetup.setUp(self)
     reset()
     self.cmd = Kmd()
     self.cmd.preloop()
     completer.completer = completefilename
     completer.filename_dequoting_function = print_exc(dequote_string)
     completer.filename_quoting_function = lambda x,y,z: x
示例#4
0
 def setUp(self):
     reset()
示例#5
0
 def setUp(self):
     reset()
     self.cmd = TestKmd(quote_char='"')
     self.cmd.preloop()
     self.is_quoted = self.cmd.completefilename.char_is_quoted
示例#6
0
 def setUp(self):
     reset()
     self.cmd = TestKmd()
     self.cmd.preloop()
示例#7
0
 def setUp(self):
     reset()
     self.cmd = TestKmd()
     self.cmd.preloop()
     os.environ['MYSHELL'] = '/foo/bar'
示例#8
0
 def setUp(self):
     JailSetup.setUp(self)
     reset()
     self.cmd = TestKmd(quote_char='"')
     self.cmd.preloop()
     self.mkfiles()
示例#9
0
 def setUp(self):
     reset()
示例#10
0
 def setUp(self):
     JailSetup.setUp(self)
     reset()
     self.mkhosts(HOSTSFILE)
     self.cmd = TestKmd(hostsfile=join(self.tempdir, 'hosts'))
     self.cmd.preloop()
示例#11
0
 def setUp(self):
     JailSetup.setUp(self)
     reset()
     self.mkhosts(HOSTSFILE)
     self.cmd = TestKmd(hostsfile=join(self.tempdir, 'hosts'))
     self.cmd.preloop()
示例#12
0
 def setUp(self):
     reset()
     completer.quote_characters = '"\''
示例#13
0
 def setUp(self):
     reset()
     self.cmd = Kmd()
     self.cmd.preloop()
示例#14
0
 def setUp(self):
     JailSetup.setUp(self)
     reset()
     self.cmd = TestKmd(quote_char='"')
     self.cmd.preloop()
     self.mkfiles()
示例#15
0
 def setUp(self):
     reset()
     self.cmd = TestKmd(quote_char='"')
     self.cmd.preloop()
     self.is_quoted = self.cmd.completefilename.char_is_quoted
示例#16
0
 def setUp(self):
     reset()
     self.cmd = TestKmd()
     self.cmd.preloop()
     os.environ['MYSHELL'] = '/foo/bar'
示例#17
0
 def setUp(self):
     reset()
     completer.quote_characters = '"\''