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")
Example #2
0
def connector(address):
    return connect(address, auth=basic_auth("neotest", "neotest"))
Example #3
0
def connector(address, error_handler):
    return connect(address,
                   error_handler=error_handler,
                   auth=basic_auth("neotest", "neotest"))