Lines Matching refs:Cmd
2 Test script for the 'cmd' module
7 import cmd
14 class samplecmdclass(cmd.Cmd):
176 class simplecmd(cmd.Cmd):
195 cmd = self.simplecmd(stdin=input, stdout=output)
196 cmd.use_rawinput = False
197 cmd.cmdloop()
199 ("(Cmd) test\n"
200 "(Cmd) test2\n"
201 "(Cmd) "))
207 cmd = self.simplecmd2(stdin=input, stdout=output)
208 cmd.use_rawinput = False
209 cmd.cmdloop()
211 ("(Cmd) test\n"
212 "(Cmd) test2\n"
213 "(Cmd) *** Unknown syntax: EOF\n"))
216 cmd.stdin = input
217 cmd.stdout = output
218 cmd.cmdloop()
220 ("(Cmd) \n"
221 "(Cmd) \n"
222 "(Cmd) *** Unknown syntax: EOF\n"))
234 tracer.run('reload(cmd);test_main()')
241 test_coverage('/tmp/cmd.cover')