Ticket #1805: test_cli.patch

File test_cli.patch, 848 bytes (added by ChosenOne, at 2012-09-14T17:47:14Z)

patch file for test

  • test_cli.

    old new  
    20312031            results = fileutil.read(fn3)
    20322032            self.failUnlessReallyEqual(results, DATA1)
    20332033        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)
    20342040        return d
    2035 
     2041 
    20362042    def test_cp_with_nonexistent_alias(self):
    20372043        # when invoked with an alias or aliases that don't exist, 'tahoe cp'
    20382044        # should output a sensible error message rather than a stack trace.