blob: 1f2630e03f3fb50b4cb67cede88f21f88b20b999 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import requests
from libpathod import test
class Test:
def setUp(self):
self.daemon = test.Daemon()
def tearDown(self):
self.daemon.shutdown()
def test_simple(self):
path = self.daemon.p("200:b@100")
r = requests.get(path)
assert r.status_code == 200
assert len(r.content) == 100
log = self.daemon.last_log()
assert log["request"]["method"] == "GET"
|