We have a test fixture which patches two classes like below.
@pytest.fixture def license_fixture(mocker): mocker.patch(\'api.license_api.UserLicense\