Skip to Content
Django RESTful Web Services
book

Django RESTful Web Services

by Gastón C. Hillar
January 2018
Intermediate to advanced
326 pages
7h 38m
English
Packt Publishing
Content preview from Django RESTful Web Services

Test your knowledge

Let's see whether you can answer the following questions correctly.

  1. In a subclass of APITestCase, self.client is:
    1. The APITestCase instance that allows us to easily compose and send HTTP requests for testing
    2. The APITestClient instance that allows us to easily compose and send HTTP requests for testing
    3. The APIClient instance that allows us to easily compose and send HTTP requests for testing
  2. Which of the following lines clean up the credentials of a method within a subclass of APITestCase?
    1. self.client.credentials()
    2. self.client.clean_credentials()
    3. self.client.credentials = {}
  3. Which of the following methods for self.client in a method within a subclass of APITestCase allows us to make an HTTP POST request?
    1. http_post ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Versatile Mobile Apps with Python and REST: RESTful Web Services with Django and React

Building Versatile Mobile Apps with Python and REST: RESTful Web Services with Django and React

Art Yudin

Publisher Resources

ISBN: 9781788833929Supplemental Content