def test_should_generate_base_auth_with_realm_correctly(self): auth = basic_auth("molly", "meoooow", "cat_cafe") assert auth.scheme == "basic" assert auth.principal == "molly" assert auth.credentials == "meoooow" assert auth.realm == "cat_cafe" assert not hasattr(auth, "parameters")
def connector(address): return connect(address, auth=basic_auth("neotest", "neotest"))
def connector(address, error_handler): return connect(address, error_handler=error_handler, auth=basic_auth("neotest", "neotest"))