Ticket #1805: test_cli.patch
File test_cli.patch, 848 bytes (added by ChosenOne, at 2012-09-14T17:47:14Z) |
---|
-
test_cli.
old new 2031 2031 results = fileutil.read(fn3) 2032 2032 self.failUnlessReallyEqual(results, DATA1) 2033 2033 d.addCallback(_get_resp2) 2034 # cp --verbose filename3 dircap:test_file 2035 d.addCallback(lambda ign: 2036 self.do_cli("cp", "--verbose", '--recursive', self.basedir, self.dircap)) 2037 def _test_for_wrong_indices((rc, out, err)): 2038 self.failUnless('examining 1 of 1' in err) 2039 d.addCallback(_test_for_wrong_indices) 2034 2040 return d 2035 2041 2036 2042 def test_cp_with_nonexistent_alias(self): 2037 2043 # when invoked with an alias or aliases that don't exist, 'tahoe cp' 2038 2044 # should output a sensible error message rather than a stack trace.