1
0
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:
Kevin McCarthy
2013-08-11 18:09:56 -10:00
parent e61c503d96
commit d00c27e244
3 changed files with 36 additions and 49 deletions

7
tests/assertions.py Normal file
View 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