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

check that cassette contains things before returning

This commit is contained in:
Kevin McCarthy
2013-08-06 18:34:56 -10:00
parent 37504c8982
commit 166facd0d0
3 changed files with 18 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
import mock
import pytest
import yaml
from vcr.cassette import Cassette
@@ -56,4 +56,5 @@ def test_cassette_response():
def test_cassette_missing_response():
a = Cassette('test')
assert not a.response('foo')
with pytest.raises(KeyError):
a.response('foo')