MCPcopy Create free account
hub / github.com/bugy/script-server / test_auth_with_localhost

Method test_auth_with_localhost

src/tests/audit_utils_test.py:65–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.assertEqual('128.5.3.2', audit_name)
64
65 def test_auth_with_localhost(self):
66 audit_name = get_audit_name(mock_request_handler(ip='127.0.0.1', auth_username='ldap_user'))
67 self.assertEqual('ldap_user', audit_name)
68
69 def test_proxied_name_with_localhost(self):
70 audit_name = get_audit_name(mock_request_handler(ip='127.0.0.1', proxy_username='basic_username'))

Callers

nothing calls this directly

Calls 2

get_audit_nameFunction · 0.70
mock_request_handlerFunction · 0.70

Tested by

no test coverage detected