def test_verify_password_is_true_for_empty_pw_with_insecure_mode(): login = Login(username='******', password='') login.user = Munch(password='******') assert login.verify_password(True) is True
def test_verify_password_is_false_when_user_pw_is_none(): login = Login() login.user = Munch(password=None) assert login.verify_password(False) is False