Python Unit Testing: Using Mocking