def test_otp_token_close(): """Strong OTP token?.""" assert not string.is_otp_token_insecure(STRONG_OTP)
#/usr/bin/python3 """Test exploit.""" from fluidasserts.format import string otp = '123456' string.is_otp_token_insecure(otp)
def test_otp_token_open(): """Weak OTP token?.""" assert string.is_otp_token_insecure(WEAK_OTP)