aboutsummaryrefslogtreecommitdiffstats
path: root/examples/test_setupall.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test_setupall.py')
-rw-r--r--examples/test_setupall.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/test_setupall.py b/examples/test_setupall.py
index ddf4d905..f0ba5844 100644
--- a/examples/test_setupall.py
+++ b/examples/test_setupall.py
@@ -10,14 +10,14 @@ class Test:
for the test suite.
"""
@classmethod
- def setUpAll(cls):
+ def setup_class(cls):
cls.d = test.Daemon()
@classmethod
- def tearDownAll(cls):
+ def teardown_class(cls):
cls.d.shutdown()
- def setUp(self):
+ def setup(self):
# Clear the pathod logs between tests
self.d.clear_log()
@@ -29,7 +29,7 @@ class Test:
# Check the returned data
assert r.status_code == 200
- assert len(r.body) == 100
+ assert len(r.content) == 100
# Check pathod's internal log
log = self.d.last_log()["request"]