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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -