def test_fetch_api_client(self):
        access_token = self.get_random_string()
        self.access.access_token = access_token
        self.access.save()
        api = self.access.api_client
        self.assertEqual(api.provider, self.access.provider)
        self.assertEqual(api.token, self.access.access_token)
Get API client with the provider and user token set.
dataset/ETHPy150Open mlavin/django-all-access/allaccess/tests/test_models.py/AccountAccessTestCase.test_fetch_api_client