Select correct statements about the unittest framework. (select three)

Questions & AnswersCategory: PythonSelect correct statements about the unittest framework. (select three)
Lokesh Kumar Staff asked 2 years ago

Select correct statements about the unittest framework. (select three)
a. The unittest framework does not require you to use any special assertion methods. For this purpose, the built-in assert statement.
b. The unittest framework is used to perform unit tests in Python.
c. The unittest framework requires you to create tests as methods in the appropriate classes.
d. The unittest framework requires that you use special assertion methods instead of the built-in assert statement.

1 Answers
Lokesh Kumar Staff answered 2 years ago

a. The unittest framework does not require you to use any special assertion methods. For this purpose, the built-in assert statement.
b. The unittest framework is used to perform unit tests in Python.
c. The unittest framework requires you to create tests as methods in the appropriate classes.
 
Explanation:

The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages. It supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework.