hvac/tests/utils.py
def do_organizations_list(self):
        """Return the bare minimum GitHub organization data needed for Vault's github auth method.

        Only returns data if the request Authorization header has a contrived github token value of "valid-token".
        """
        response = []
        if self.headers.get('Authorization') == 'Bearer valid-token':
            response.append(
                {
                    "login": "hvac",
                    "id": 1,
                }
            )

            self.wfile.write(json.dumps(response).encode())
Return the bare minimum GitHub organization data needed for Vault's github auth method.

        Only returns data if the request Authorization header has a contrived github token value of "valid-token".
        
Return the bare minimum GitHub organization data needed for Vault's github auth method.
Only returns data if the request Authorization header has a contrived github token value of "valid-token".
Return the bare minimum GitHub organization data needed for Vault ' s github auth method . Only returns data if the request Authorization header has a contrived github token value of " valid - token " .
def do_organizations_list(self):
        response = []
        if self.headers.get('Authorization') == 'Bearer valid-token':
            response.append(
                {
                    "login": "hvac",
                    "id": 1,
                }
            )
            self.wfile.write(json.dumps(response).encode())
def do_organizations_list ( self ) : response = [ ] if self . headers . get ( 'Authorization' ) == 'Bearer valid-token' : response . append ( { "login" : "hvac" , "id" : 1 , } ) self . wfile . write ( json . dumps ( response ) . encode ( ) )
Return the bare minimum GitHub organization data needed for Vault's github auth method.
Return the bare minimum GitHub organization data needed for Vault ' s github auth method .
"""Return the bare minimum GitHub organization data needed for Vault's github auth method.

        Only returns data if the request Authorization header has a contrived github token value of "valid-token".
        """
self