From fa722e02901c11f0d52176177d1032e9ab0cae1f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 26 Sep 2015 17:40:22 +0200 Subject: adjust to netlib changes --- test/test_pathod.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/test_pathod.py') diff --git a/test/test_pathod.py b/test/test_pathod.py index f8c45ad8..98da7d28 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -52,7 +52,7 @@ class TestNoApi(tutils.DaemonTests): assert self.getpath("/log").status_code == 404 r = self.getpath("/") assert r.status_code == 200 - assert not "Log" in r.body + assert not "Log" in r.content class TestNotAfterConnect(tutils.DaemonTests): @@ -120,7 +120,7 @@ class TestNocraft(tutils.DaemonTests): def test_nocraft(self): r = self.get(r"200:b'\xf0'") assert r.status_code == 800 - assert "Crafting disabled" in r.body + assert "Crafting disabled" in r.content class CommonTests(tutils.DaemonTests): @@ -153,7 +153,7 @@ class CommonTests(tutils.DaemonTests): def test_disconnect(self): rsp = self.get("202:b@100k:d200") - assert len(rsp.body) < 200 + assert len(rsp.content) < 200 def test_parserr(self): rsp = self.get("400:msg,b:") @@ -162,7 +162,7 @@ class CommonTests(tutils.DaemonTests): def test_static(self): rsp = self.get("200:b