Example #1
0
def get_sample_personal_account(client=None):
    if client is None:
        from tests.factory import client_factory
        client = client_factory.get_sample_personal_client()
    account = accounts.PersonalAccount(client, PERSONAL_ACCOUNT_DATA)
    account.profile = resources.UserProfile(USER_PROFILE_DATA)
    return account
Example #2
0
 def test_get_auth_uri(self):
     client = client_factory.get_sample_personal_client()
     self.assertIsInstance(client.get_auth_uri(), str)