Sep 4, 2018 · 1 min read
# following was missing in test source code at the end of file to run unit test
if __name__ == ‘__main__’:
unittest.main()
Some more observation after running test file in Python
This source is applicable for both Python 2.x and Python 3.x
In Python 2.x generates .pyc file after running test file
In Python 3.x after running test file __pycache__ directory generates, inside this directory .pyc file generated