Precondition:
5 <= deck size <= 100
but 4th assertion test is:
assert cards(3, [0, 1, 1]) is False
and others have deck = 4
17
11
1