aboutsummaryrefslogtreecommitdiffstats
path: root/examples/test_setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test_setup.py')
-rw-r--r--examples/test_setup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/test_setup.py b/examples/test_setup.py
index c6e52d00..6085c98a 100644
--- a/examples/test_setup.py
+++ b/examples/test_setup.py
@@ -10,10 +10,10 @@ class Test:
each test.
"""
- def setUp(self):
+ def setup(self):
self.d = test.Daemon()
- def tearDown(self):
+ def teardown(self):
self.d.shutdown()
def test_simple(self):
@@ -24,7 +24,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"]