Write file test_mymod.py:
test_mymod.py
import unittest import mymod class TestMyCode(unittest.TestCase): def test_double(self): result = mymod.double(4) self.assertEqual(result, 8) if __name__ == '__main__': unittest.main()