Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 2)
2.
What is the purpose of the setUp method in a Python test class?
It signals the start of the test class
It initializes resources before each test method is executed
It marks a test as skipped
It defines the teardown logic for a test case
Answer: Option
Explanation:
The setUp method in a Python test class is used to initialize resources or perform setup tasks before each test method is executed.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.