1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

beef up the new epsisodes test a bit

This commit is contained in:
Kevin McCarthy
2014-03-29 12:07:21 -10:00
parent 01901b7a4e
commit 544d2127d3

View File

@@ -58,9 +58,13 @@ def test_new_episodes_record_mode(tmpdir):
# a cassette without repurcussions.
response = urlopen('http://httpbin.org/get').read()
# the first interaction was not re-recorded, but the second was added
# one of the responses has been played
assert cass.play_count == 1
with vcr.use_cassette(testfile, record_mode="new_episodes") as cass:
# the cassette should now have 2 responses
assert len(cass.responses) == 2
def test_all_record_mode(tmpdir):
testfile = str(tmpdir.join('recordmode.yml'))