def test_validate_passes_on_auth_fixture(auth_string): assert validate_authentication_string(auth_string)
def test_validate_fails_on_badly_typed_input(bad_input): with pytest.raises(HTTPException) as e: validate_authentication_string(bad_input) assert e.status_code == 400
def test_validate_returns_false_for_bad_password(): assert not validate_authentication_string( cipher_suite.encrypt("not valid"))
def test_validate_returns_false_for_bad_password(): assert not validate_authentication_string(encrypt('not valid'))