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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user