Test your knowledge
Let's see whether you can answer the following questions correctly.
- In a subclass of
APITestCase
,self.client
is:- The
APITestCase
instance that allows us to easily compose and send HTTP requests for testing - The
APITestClient
instance that allows us to easily compose and send HTTP requests for testing - The
APIClient
instance 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.client
in a method within a subclass ofAPITestCase
allows us to make an HTTP POST request?http_post
make_http_post_request
post
- Which of the following methods for self.client in a method within a subclass of
APITestCase
allows us to make an HTTP GET request?http_get
make_http_get_request
get
- Which of the following methods for
self.client
in a method within a subclass of...