From 1a3a46453407ae3e6bce20064b209ee5b64e74df Mon Sep 17 00:00:00 2001 From: francois Date: Fri, 14 Nov 2008 07:44:58 -0700 Subject: [PATCH] test_cli.py: Ensure that we can read our uploaded files back --- src/allmydata/test/test_cli.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.45.2