]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
beef up the new epsisodes test a bit
authorKevin McCarthy <me@kevinmccarthy.org>
Sat, 29 Mar 2014 22:07:21 +0000 (12:07 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Sat, 29 Mar 2014 22:07:21 +0000 (12:07 -1000)
tests/integration/test_record_mode.py

index a14855f67c0574c1a5d1b6d1e5af288e417f3a65..c47baad88d0a9f74e10ef61472d902a5919ab285 100644 (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'))