def test_commandobj_repr_method(): set_sys_argv2() c = Command() assert c.__repr__( ) == "< Command object > instantiated from arguments: ['-mops', '-t', 'lastpos']"