def test_cassette_get_missing_response(): a = Cassette('test') with pytest.raises(KeyError): a.response_of('foo')
def test_cassette_response_of(): a = Cassette('test') a.append('foo', 'bar') assert a.response_of('foo') == 'bar'