mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
refactor tests a bit
This commit is contained in:
7
tests/assertions.py
Normal file
7
tests/assertions.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
||||
Reference in New Issue
Block a user