Mocking Googleads for Unit Tests
I have a service that uses the googleads library in python, I want to unit test these functions but do not know how to go about mocking this aspect. When I used PHP and Zend Framework it was pretty easy to mock clients, as I could tell what was expected to be called, and mock what was returned, but I do not know how to do this here. Could you point to a good resource to do learn more about it? Here's some example code I'd like to test (get_account_timezone): from googleads import AdWordsClient from googleads.oauth2 import GoogleRefreshTokenClient from dateutil import tz class AdWords: ADWORDS