def test_bad_key_raises_InvalidToken(self): try: ck = CryptKeeper(TEST_BAD_KEY) except InvalidToken: assert True