python - How to unit test a function that does not return anything? -


is possible find values of local variables in function mocking?

class a:   def f(self):     = 5000 * 10     b().somefunction(a) 

how write unit test function? have mocked somefunction not want testing scope go outside block. way can test rest of function checking if value of variable 50000 @ end of function. how do this?

with interaction testing, check value somefunction called with. happens inside function, should tested in unit test of function.


Comments

Popular posts from this blog

css - I want to align grid in center -

python - SWIG function not printing output -

Contact Form PHP Email Script -