コード例 #1
0
ファイル: account_factory.py プロジェクト: rjmuniz/onedrive-d
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
コード例 #2
0
 def test_get_auth_uri(self):
     client = client_factory.get_sample_personal_client()
     self.assertIsInstance(client.get_auth_uri(), str)