Created
August 25, 2016 13:37
-
-
Save mhl/119663153881067d0fd44913d20a9ad5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, os, yaml | |
d = 'nuntium/tests/fixtures/vcr_cassettes/' | |
for y in os.listdir(d): | |
yf = os.path.join(d, y) | |
data = yaml.load(open(yf).read()) | |
print "======== ", y | |
for i in data['interactions']: | |
print "---- ", i['request']['uri'] | |
body_dict = i['response']['body'] | |
s = body_dict['string'] | |
print ">>>", s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment