Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the primary purpose of unit testing?
Think about testing techniques.
Name one assertion method from the unittest module.
This method checks expected outcomes.
What is unittest in Python?
Think about its primary use in program development.
True or False: It is good practice to have interdependent tests.
Consider the isolation of test cases.
Create a comprehensive test case for a banking system that includes deposit, withdraw, and balance check functionalities. Ensure you cover normal, edge, and invalid cases.
Think about testing each functionality and the states that they can create in your implementation.
Implement a test suite for a class that manipulates image files (resize, rotate, and crop). Make sure to handle various image formats and edge cases.
Consider the different handling circumstances each function will need.
6 more questions in this section. Enroll free to practise them all.
Enroll free