def testNoAuthHeaders(self): """ negative test for authentication guarded route. invoke get request without passing authentication headers resoponse is validated for appropriate headers and body """ response = self.app.get("", status="*") assertions.assertInvalidAuthenticationResponse(self, response)
def testInvalidAuthHeaders(self): """ negative test for authentication guarded route. invoke get request with invalid authentication headers resoponse is validated for appropriate headers and body """ invalidHeaders = getInvalidHTTPHeaders() response = self.app.get("", status="*", headers=invalidHeaders) assertions.assertInvalidAuthenticationResponse(self, response)