]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_cli.py: fix mutable PUT stderr expectations
authorBrian Warner <warner@lothar.com>
Wed, 20 Mar 2013 19:27:38 +0000 (12:27 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 20 Mar 2013 19:27:38 +0000 (12:27 -0700)
src/allmydata/test/test_cli.py

index d4c26de838afaedda5fd230fdef87844a69a6955..222bbba552929e708c27a5eab36ad9465e7ed708 100644 (file)
@@ -1176,7 +1176,7 @@ class Put(GridTestMixin, CLITestMixin, unittest.TestCase):
         def _check(res):
             (rc, out, err) = res
             self.failUnlessEqual(rc, 0, str(res))
-            self.failUnlessEqual(err, "", str(res))
+            self.failUnlessEqual(err.strip(), "201 Created", str(res))
             self.uri = out
         d.addCallback(_check)
         d.addCallback(lambda res:
@@ -1184,7 +1184,7 @@ class Put(GridTestMixin, CLITestMixin, unittest.TestCase):
         def _check2(res):
             (rc, out, err) = res
             self.failUnlessEqual(rc, 0, str(res))
-            self.failUnlessEqual(err, "", str(res))
+            self.failUnlessEqual(err.strip(), "200 OK", str(res))
             self.failUnlessEqual(out, self.uri, str(res))
         d.addCallback(_check2)
         d.addCallback(lambda res: