I want to test a python program which contains threads. I have searched for testing tools but I do not understand how to use them. For example I found the PyUnit which uses the unittest library but I still dont know how to test the runtime or the memory that my program use. I found and downloaded the JetBrains pycharm which is a platform like NetBeans and Eclipse in order to run and debug , compile and test my programs but I couldnt use it. Can you please tell my how can I test my program using simple methods/functions ? Do I have to merge my code with a unittest class which contains methods tests ?
Thank You.