<s> import betamax <EOL> from tests . integration import helper <EOL> class TestPlaybackRepeatInteractions ( helper . IntegrationHelper ) : <EOL> def test_will_replay_the_same_interaction ( self ) : <EOL> self . cassette_created = False <EOL> s = self . session <EOL> recorder = betamax . Betamax ( s ) <EOL> with recorder . use_cassette ( '<STR_LIT>' ) : <EOL> cassette = recorder . current_cassette <EOL> r = s . get ( '<STR_LIT>' ) <EOL> assert r . status_code == <NUM_LIT:200> <EOL> assert len ( cassette . interactions ) == <NUM_LIT:1> <EOL> with recorder . use_cassette ( '<STR_LIT>' , <EOL> allow_playback_repeats = True ) : <EOL> cassette = recorder . current_cassette <EOL> r = s . get ( '<STR_LIT>' ) <EOL> assert r . status_code == <NUM_LIT:200> <EOL> assert len ( cassette . interactions ) == <NUM_LIT:1> <EOL> r = s . get ( '<STR_LIT>' ) <EOL> assert r . status_code == <NUM_LIT:200> <EOL> assert len ( cassette . interactions ) == <NUM_LIT:1> <EOL> assert cassette . interactions [ <NUM_LIT:0> ] . used is False </s>
