mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
change response to response_of
This commit is contained in:
@@ -44,12 +44,12 @@ def test_cassette_contains():
|
||||
a.append('foo','bar')
|
||||
assert 'foo' in a
|
||||
|
||||
def test_cassette_response():
|
||||
def test_cassette_response_of():
|
||||
a = Cassette('test')
|
||||
a.append('foo','bar')
|
||||
assert a.response('foo') == 'bar'
|
||||
assert a.response_of('foo') == 'bar'
|
||||
|
||||
def test_cassette_missing_response():
|
||||
def test_cassette_get_missing_response():
|
||||
a = Cassette('test')
|
||||
with pytest.raises(KeyError):
|
||||
a.response('foo')
|
||||
a.response_of('foo')
|
||||
|
||||
Reference in New Issue
Block a user