Changeset b6a645a in trunk


Ignore:
Timestamp:
2015-01-30T00:50:25Z (10 years ago)
Author:
Daira Hopwood <daira@…>
Branches:
master
Children:
8147f3c
Parents:
c1d5c4f0
git-author:
Daira Hopwood <daira@…> (2014-10-11 22:43:23)
git-committer:
Daira Hopwood <daira@…> (2015-01-30 00:50:25)
Message:

Adds test_ticket_2027 to test_cli.Cp. refs #2027

Author: Mark Berger <mark.berger.j@…>
Signed-off-by: Daira Hopwood <daira@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/test_cli.py

    rc1d5c4f0 rb6a645a  
    25102510        return d
    25112511
     2512    def test_ticket_2027(self):
     2513        # This test ensures that tahoe will copy a file from the grid to
     2514        # a local directory without a specified file name.
     2515        # https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2027
     2516        self.basedir = "cli/Cp/cp_verbose"
     2517        self.set_up_grid()
     2518
     2519        # Write a test file, which we'll copy to the grid.
     2520        test1_path = os.path.join(self.basedir, "test1")
     2521        fileutil.write(test1_path, "test1")
     2522
     2523        d = self.do_cli("create-alias", "tahoe")
     2524        d.addCallback(lambda ign:
     2525            self.do_cli("cp", test1_path, "tahoe:"))
     2526        d.addCallback(lambda ign:
     2527            self.do_cli("cp", "tahoe:test1", self.basedir))
     2528        def _check(res):
     2529            (rc, out, err) = res
     2530            self.failUnlessIn("Success: file copied", out, str(res))
     2531        return d
     2532
     2533
    25122534class Backup(GridTestMixin, CLITestMixin, StallMixin, unittest.TestCase):
    25132535
Note: See TracChangeset for help on using the changeset viewer.