From 28379e900048790348104911476b1af4b4b62b94 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Mon, 19 Aug 2013 19:34:22 -1000 Subject: [PATCH] start adding config tests --- tests/integration/test_config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/integration/test_config.py diff --git a/tests/integration/test_config.py b/tests/integration/test_config.py new file mode 100644 index 0000000..6dcfe40 --- /dev/null +++ b/tests/integration/test_config.py @@ -0,0 +1,14 @@ +import json +import urllib2 +import vcr + +def test_set_serializer_default_config(tmpdir): + my_vcr = vcr.VCR(serializer='json') + + with my_vcr.use_cassette(str(tmpdir.join('test.json'))) as cass: + assert my_vcr.serializer == 'json' + urllib2.urlopen('http://httpbin.org/get') + + with open(str(tmpdir.join('test.json'))) as f: + assert json.loads(f.read()) + -- 2.43.0