test_cli.py: Ensure that we can read our uploaded files back
authorfrancois <francois@ctrlaltdel.ch>
Fri, 14 Nov 2008 14:44:58 +0000 (07:44 -0700)
committerfrancois <francois@ctrlaltdel.ch>
Fri, 14 Nov 2008 14:44:58 +0000 (07:44 -0700)
src/allmydata/test/test_cli.py

index fb3edb05410e4b0308c74b122a5b9f47e98d9906..6eed4ba0b5385197e7dcebd72ab645486cf436f5 100644 (file)
@@ -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