import requests from pathod import test class Test: """ Testing the requests module with a pathod instance started for each test. """ def setup(self): self.d = test.Daemon() def teardown(self): self.d.shutdown() def test_simple(self): # Get a URL for a pathod spec url = self.d.p("200:b@100") # ... and request it r = requests.put(url) # Check the returned data assert r.status_code == 200 assert len(r.content) == 100 # Check pathod's internal log log = self.d.last_log()["request"] assert log["method"] == "PUT" id='header'> cgit logo index : openwrt/upstream
upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-4.1/530-board_A4001N1.patch
blob: fa164eef13230489a80ac36c4f069842d1e25036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69