Usually the "good method" imply doing Mocks. https://docs.python.org/3/library/unittest.mock.html
So you'll return example response from the site.
You can check on class declaration debug state and if True replace the class by the corresponding Mock