Unittest
Unit Testing in Python Unit Testing is the first level of software testing where the smallest testable parts of a software are tested. This is used to validate that each unit of the software performs as designed. import unittest class SimpleTest(unittest.TestCase): def test( self ): self .assertTrue( True ) if __name__ = = '__main__' : unittest.main() This is the basic test code using unittest framework, which is having a single test. This test() method will fail if TRUE is ever FALSE. There are three types of possible test outcomes : OK – This means that all the tests are passed. FAIL – This means that the test did not pass and an AssertionError exception is raised. ERROR – This means that the test raises an exception other than AssertionError. EXAMPLE : import...