예제 #1
0
def test_cassette_get_missing_response():
    a = Cassette('test')
    with pytest.raises(KeyError):
        a.response_of('foo')
예제 #2
0
def test_cassette_get_missing_response():
    a = Cassette('test')
    with pytest.raises(KeyError):
        a.response_of('foo')
예제 #3
0
def test_cassette_response_of():
    a = Cassette('test')
    a.append('foo', 'bar')
    assert a.response_of('foo') == 'bar'
예제 #4
0
def test_cassette_response_of():
    a = Cassette('test')
    a.append('foo', 'bar')
    assert a.response_of('foo') == 'bar'