def test_get_unknown_application(self, m):
     sde_client = SDEClient("http://localhost/sde", "Basic", None, "admin", "admin", None)
     m.register_uri('GET', SDEClient.GET_APPLICATIONS % (sde_client.url, 'FAILED'), status_Code=403)
     sde_client.get_application('FAILED')
 def test_get_unknown_authentication_method(self, m):
     sde_client = SDEClient("http://localhost/sde", "Unknown", None, None, None, None)
     m.register_uri('GET', SDEClient.GET_APPLICATIONS % (sde_client.url, 'FAILED'), json=json.loads(GET_APPLICATION_RESPONSE))
     sde_client.get_application('FAILED')
 def test_get_application_token_auth(self, m):
     sde_client = SDEClient("http://localhost/sde", "PAT", None, None, None, "1234abcd")
     m.register_uri('GET', SDEClient.GET_APPLICATIONS % (sde_client.url, 'Application Test'), json=json.loads(GET_APPLICATION_RESPONSE))
     eq_(json.loads(GET_APPLICATION_RESPONSE)['results'][0], sde_client.get_application('Application Test'))