From 544d2127d3d1241abc5b4814bdc1308744480be9 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 29 Mar 2014 12:07:21 -1000 Subject: [PATCH] beef up the new epsisodes test a bit --- tests/integration/test_record_mode.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_record_mode.py b/tests/integration/test_record_mode.py index a14855f..c47baad 100644 --- a/tests/integration/test_record_mode.py +++ b/tests/integration/test_record_mode.py @@ -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'))