1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 09:35:34 +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(): 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)