1
0
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:
Max Shytikov
2014-04-30 02:49:55 +02:00
parent 7b253ebc6f
commit fbd5049d38

View File

@@ -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)