Test your knowledge
Let's see whether you can answer the following questions correctly.
- In a subclass of
APITestCase,self.clientis:- The
APITestCaseinstance that allows us to easily compose and send HTTP requests for testing - The
APITestClientinstance that allows us to easily compose and send HTTP requests for testing - The
APIClientinstance that allows us to easily compose and send HTTP requests for testing
- The
- Which of the following lines clean up the credentials of a method within a subclass of
APITestCase?self.client.credentials()self.client.clean_credentials()self.client.credentials = {}
- Which of the following methods for
self.clientin a method within a subclass ofAPITestCaseallows us to make an HTTP POST request?http_postmake_http_post_requestpost
- Which of the following methods for self.client in a method within a subclass of
APITestCaseallows us to make an HTTP GET request?http_getmake_http_get_requestget
- Which of the following methods for
self.clientin a method within a subclass of...