Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What keyword do you use to define a test case method in unittest?
Think about how unittest identifies test methods.
True or False: The unittest framework is only used for integration tests.
Recall the distinction between unit and integration tests.
What is the main purpose of the unittest module?
Consider the key functionality of the module.
True or False: The setUp method runs after each test method in unittest.
Think about the sequence of method calls in testing.
Create a comprehensive test suite that tests multiple functionalities of a calculator class.
Consider what operations your calculator method should include.
Implement tests for a function that handles user input by scraping an external source.
Think about how to isolate your tests from external dependencies.
6 more questions in this section. Enroll free to practise them all.
Enroll free