mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +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():
|
||||
request = Request('http','localhost',80,'GET','/',{},{})
|
||||
cassette = {'requests': [request], 'responses': [{'body':b'\x8c'}]}
|
||||
request = Request(
|
||||
method='GET',
|
||||
uri='htt://localhost:80/',
|
||||
body='',
|
||||
headers={},
|
||||
)
|
||||
cassette = {'requests': [request], 'responses': [{'body': b'\x8c'}]}
|
||||
|
||||
with pytest.raises(Exception) as e:
|
||||
serialize(cassette)
|
||||
|
||||
Reference in New Issue
Block a user