mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Format with line length 110 to match flake8 make black part of linting check Update travis spec for updated black requirements Add diff output for black on failure update changelog
20 lines
354 B
Python
20 lines
354 B
Python
import json
|
|
|
|
|
|
def assert_cassette_empty(cass):
|
|
assert len(cass) == 0
|
|
assert cass.play_count == 0
|
|
|
|
|
|
def assert_cassette_has_one_response(cass):
|
|
assert len(cass) == 1
|
|
assert cass.play_count == 1
|
|
|
|
|
|
def assert_is_json(a_string):
|
|
try:
|
|
json.loads(a_string.decode("utf-8"))
|
|
except Exception:
|
|
assert False
|
|
assert True
|