def owns_endpoint(self, endpoint):
if self.blueprint:<EOL><INDENT>if endpoint.startswith(self.blueprint.name):<EOL><INDENT>endpoint = endpoint.split(self.blueprint.name + '<STR_LIT:.>', <NUM_LIT:1>)[-<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return endpoint in self.endpoints<EOL>
Tests if an endpoint name (not path) belongs to this Api.  Takes
        in to account the Blueprint name part of the endpoint name.

        :param endpoint: The name of the endpoint being checked
        :return: bool