Skip to Content
Building RESTful Python Web Services
book

Building RESTful Python Web Services

by Gastón C. Hillar
October 2016
Intermediate to advanced
418 pages
9h 52m
English
Packt Publishing
Content preview from Building RESTful Python Web Services

Test your knowledge

  1. By default, nose2 looks for modules whose names start with the following prefix:
    1. test
    2. run
    3. unittest

  2. By default, nose2 loads tests from all the subclasses of the following class:
    1. unittest.Test
    2. unittest.TestCase
    3. unittest.RunTest

  3. The setUp method in a subclass of unittest.TestCase:
    1. Is executed before each test method runs.
    2. Is executed only once before all the tests start their execution.
    3. Is executed only once after all the tests finish their execution.

  4. The tearDown method in a subclass of unittest.TestCase:
    1. Is executed after each test method runs.
    2. Is executed before each test method runs.
    3. Is executed after a test method only when it fails.

  5. If we declare a get_accept_content_type_headers method within a subclass of unittest.TestCase, by default, ...
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

Hands-On RESTful Python Web Services - Second Edition

Hands-On RESTful Python Web Services - Second Edition

Gastón C. Hillar

Publisher Resources

ISBN: 9781786462251Supplemental Content