From e981828b25a3801c936d638592418770df05f16d Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 20 Mar 2013 12:27:38 -0700 Subject: [PATCH] test_cli.py: fix mutable PUT stderr expectations --- src/allmydata/test/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index d4c26de8..222bbba5 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -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: -- 2.45.2