コード例 #1
0
ファイル: test_cassettes.py プロジェクト: chromy/vcrpy
def test_cassette_play_counter():
    a = Cassette('test')
    a.mark_played('foo')
    a.mark_played('bar')
    assert a.play_counts['foo'] == 1
    assert a.play_counts['bar'] == 1
コード例 #2
0
ファイル: test_cassettes.py プロジェクト: bryanhelmig/vcrpy
def test_cassette_play_counter():
    a = Cassette('test')
    a.mark_played('foo')
    a.mark_played('bar')
    assert a.play_counts['foo'] == 1
    assert a.play_counts['bar'] == 1
コード例 #3
0
ファイル: test_cassettes.py プロジェクト: chromy/vcrpy
def test_cassette_played():
    a = Cassette('test')
    a.mark_played('foo')
    a.mark_played('foo')
    assert a.play_count == 2
コード例 #4
0
ファイル: test_cassettes.py プロジェクト: bryanhelmig/vcrpy
def test_cassette_played():
    a = Cassette('test')
    a.mark_played('foo')
    a.mark_played('foo')
    assert a.play_count == 2