intermediate in python and I am trying to write unit tests for this part of code but I don´t know if it´s possible to do so without put it into functions and test only module...