diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cards.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/test_cards.py b/tests/test_cards.py index 019d512..ea49847 100644 --- a/tests/test_cards.py +++ b/tests/test_cards.py @@ -13,15 +13,7 @@ class TestCards(unittest.TestCase): self.assertTrue(Cards.get_black_cards("en")) def test_get_cards_unknown_language(self): - try: + with self.assertRaises(FileNotFoundError): Cards.get_white_cards("zz") - except FileNotFoundError: - pass - else: - self.fail("Found zz white cards.") - try: + with self.assertRaises(FileNotFoundError): Cards.get_black_cards("zz") - except FileNotFoundError: - pass - else: - self.fail("Found zz black cards.") |