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

Fix issue #36 - error message for unregistered matcher was broken

This commit is contained in:
Kevin McCarthy
2013-09-29 15:56:13 -10:00
parent cf8646d8d6
commit deed8cab97
6 changed files with 17 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
import os
import json
import urllib2
import pytest
import vcr
@@ -45,3 +46,11 @@ def test_override_match_on(tmpdir):
assert len(cass) == 1
assert cass.play_count == 1
def test_missing_matcher():
my_vcr = vcr.VCR()
my_vcr.register_matcher("awesome", object)
with pytest.raises(KeyError):
with my_vcr.use_cassette("test.yaml", match_on=['notawesome']):
pass