Lines Matching refs:Cmd
2 Test script for the 'cmd' module
7 import cmd
13 class samplecmdclass(cmd.Cmd):
173 class simplecmd(cmd.Cmd):
192 cmd = self.simplecmd(stdin=input, stdout=output)
193 cmd.use_rawinput = False
194 cmd.cmdloop()
196 ("(Cmd) test\n"
197 "(Cmd) test2\n"
198 "(Cmd) "))
204 cmd = self.simplecmd2(stdin=input, stdout=output)
205 cmd.use_rawinput = False
206 cmd.cmdloop()
208 ("(Cmd) test\n"
209 "(Cmd) test2\n"
210 "(Cmd) *** Unknown syntax: EOF\n"))
213 cmd.stdin = input
214 cmd.stdout = output
215 cmd.cmdloop()
217 ("(Cmd) \n"
218 "(Cmd) \n"
219 "(Cmd) *** Unknown syntax: EOF\n"))
231 tracer.run('import importlib; importlib.reload(cmd); test_main()')
238 test_coverage('/tmp/cmd.cover')