title: How to unit test a function that does not return anything?
body: <p>Is it possible to find the values of the local variables in a function by mocking?</p>
  
  <pre><code>class A:
    def f(self):
      a = 5000 * 10
      B().someFunction(a)
  </code></pre>
  
  <p>How do I write a unit test for this function? I have mocked <code>someFunction</code> as I do not want the testing scope to go outside the block. The only way I can test the rest of the function is by checking if the value of variable a is 50000 at the end of the function. How do I do this?</p>