1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

not really very happy about this

This commit is contained in:
Kevin McCarthy
2014-05-06 20:16:56 -10:00
parent c0691a96e6
commit 66c6909021
4 changed files with 35 additions and 21 deletions

View File

@@ -7,10 +7,10 @@ from vcr.errors import UnhandledHTTPRequestError
def test_cassette_load(tmpdir):
a_file = tmpdir.join('test_cassette.yml')
a_file.write(yaml.dump([
a_file.write(yaml.dump({'interactions': [
{'request': {'body': '', 'uri': 'foo', 'method': 'GET', 'headers': {}},
'response': 'bar'}
]))
]}))
a_cassette = Cassette.load(str(a_file))
assert len(a_cassette) == 1