What is a test case (unit tests)?
What is a test case (unit tests)?
a. A test case is a program that allows you to run tests and makes the result available to the user.
b. A test case represents the preparation needed to perform one or more tests and any associated cleaning activities. This can include, for example, creating temporary databases, directories, or starting a server process.
c. A test case is an individual testing unit and tests the specified response against a specified set of input.
c. A test case is an individual testing unit and tests the specified response against a specified set of input.
Explanation:
test case – a test case is the individual unit of testing. It checks for a specific response to a particular set of inputs. unittest provides a base class, TestCase, which may be used to create new test cases.