Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def get_num1(self):
  2. return self.num1
  3.  
  4. @mock.patch('script.script.MathTest.function1')
  5. def test_function(mock_func):
  6. mock_func.return_value = 99
  7.  
  8. assert script.script_function() == 99
  9.  
  10. def script_function():
  11.  
  12. result = object.function1(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement