Ensure flag:12 raises an alert

This commit is contained in:
Arthur Milchior 2019-11-13 17:41:34 +01:00
parent a4cb3debe2
commit f1c3f124e2

View File

@ -224,6 +224,11 @@ def test_findCards():
id)
assert len(deck.findCards("added:1")) == deck.cardCount() - 1
assert len(deck.findCards("added:2")) == deck.cardCount()
# flag
with assert_raises(Exception):
deck.findCards("flag:01")
with assert_raises(Exception):
deck.findCards("flag:12")
def test_findReplace():
deck = getEmptyCol()