From: francois Date: Fri, 14 Nov 2008 14:44:58 +0000 (-0700) Subject: test_cli.py: Ensure that we can read our uploaded files back X-Git-Tag: allmydata-tahoe-1.3.0~424 X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/frontends/using.html?a=commitdiff_plain;h=1a3a46453407ae3e6bce20064b209ee5b64e74df;p=tahoe-lafs%2Ftahoe-lafs.git test_cli.py: Ensure that we can read our uploaded files back --- diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index fb3edb05..6eed4ba0 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -566,4 +566,10 @@ class Cp(SystemTestMixin, CLITestMixin, unittest.TestCase): d.addCallback(lambda res: self.do_cli("cp", fn1, "tahoe:")) d.addCallback(lambda res: self.do_cli("cp", fn2, "tahoe:")) + d.addCallback(lambda res: self.do_cli("get", "tahoe:Ärtonwall")) + d.addCallback(lambda (out,err): self.failUnlessEqual(out, DATA1)) + + d.addCallback(lambda res: self.do_cli("get", "tahoe:Metallica")) + d.addCallback(lambda (out,err): self.failUnlessEqual(out, DATA2)) + return d