Add HTTP POST test
This commit is contained in:
parent
3668a917a7
commit
45a5b7c0f6
1 changed files with 6 additions and 0 deletions
6
main.py
6
main.py
|
@ -36,6 +36,12 @@ class TestHTTP(TestCase):
|
||||||
HTTP_URL + '/get?' + device.http_req_data(),
|
HTTP_URL + '/get?' + device.http_req_data(),
|
||||||
))
|
))
|
||||||
|
|
||||||
|
def test_post(self) -> None:
|
||||||
|
self._send_and_check(Request(
|
||||||
|
HTTP_URL + '/post',
|
||||||
|
data=device.http_req_data().encode(),
|
||||||
|
))
|
||||||
|
|
||||||
def test_json(self) -> None:
|
def test_json(self) -> None:
|
||||||
raise NotImplemented
|
raise NotImplemented
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue