Exemplo n.º 1
0
class TestBackend(EmoryLDAPBackend):
    """An EmoryLDAPBackend that overrides only the bare minimum necessary to mock
    out the actual LDAP protocol communication.
    """

    def __init__(self, *args, **kwargs):
        self._server = MockServer()
        super(TestBackend, self).__init__(*args, **kwargs)

    def get_server(self, *args, **kwargs):
        self._server.mock_authentication_stub(*args, **kwargs)
        return self._server
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     self._server = MockServer()
     super(TestBackend, self).__init__(*args, **kwargs)