parameters: (self, data)
return_statement: return response
docstring: Test the credential type endpoint.
docstring_summary: Test the credential type endpoint.
docstring_tokens: Test the credential type endpoint .
function: def test(self, data):
          """Test the credential type endpoint."""
          response = self.connection.post(urljoin(str(self.url), 'test/'), data)
          exception = exception_from_status_code(response.status_code)
          exc_str = "%s (%s) received" % (http.responses[response.status_code], response.status_code)
          if exception:
              raise exception(exc_str, response.json())
          elif response.status_code == http.FORBIDDEN:
              raise exc.Forbidden(exc_str, response.json())
          return response
function_tokens: def test ( self , data ) : response = self . connection . post ( urljoin ( str ( self . url ) , 'test/' ) , data ) exception = exception_from_status_code ( response . status_code ) exc_str = "%s (%s) received" % ( http . responses [ response . status_code ] , response . status_code ) if exception : raise exception ( exc_str , response . json ( ) ) elif response . status_code == http . FORBIDDEN : raise exc . Forbidden ( exc_str , response . json ( ) ) return response