+ 6
What is unittest in python?
1 Réponse
+ 3
Unit Testing is the first level of software testing where the smallest testable parts of a software are tested.
To use unittest:
```
import unittest
class Test(unittest.TestCase):
def test(self):
self.assertTrue(True)
if __name__ == '__main__':
unittest.main()
```
For a better understanding refer
https://www.geeksforgeeks.org/unit-testing-JUMP_LINK__&&__python__&&__JUMP_LINK-unittest/
and try out their exercises.