mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 17:45:35 +00:00
Updated test to use new Request constructor
This commit is contained in:
@@ -4,8 +4,13 @@ from vcr.request import Request
|
|||||||
|
|
||||||
|
|
||||||
def test_serialize_binary():
|
def test_serialize_binary():
|
||||||
request = Request('http','localhost',80,'GET','/',{},{})
|
request = Request(
|
||||||
cassette = {'requests': [request], 'responses': [{'body':b'\x8c'}]}
|
method='GET',
|
||||||
|
uri='htt://localhost:80/',
|
||||||
|
body='',
|
||||||
|
headers={},
|
||||||
|
)
|
||||||
|
cassette = {'requests': [request], 'responses': [{'body': b'\x8c'}]}
|
||||||
|
|
||||||
with pytest.raises(Exception) as e:
|
with pytest.raises(Exception) as e:
|
||||||
serialize(cassette)
|
serialize(cassette)
|
||||||
|
|||||||
Reference in New Issue
Block a user