/usr/lib/python3/dist-packages/social/tests/backends/test_podio.py is in python3-social-auth 1:0.2.21+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | import json
from social.tests.backends.oauth import OAuth2Test
class PodioOAuth2Test(OAuth2Test):
backend_path = 'social.backends.podio.PodioOAuth2'
user_data_url = 'https://api.podio.com/user/status'
expected_username = 'user_1010101010'
access_token_body = json.dumps({
'token_type': 'bearer',
'access_token': '11309ea9016a4ad99f1a3bcb9bc7a9d1',
'refresh_token': '52d01df8b9ac46a4a6be1333d9f81ef2',
'expires_in': 28800,
'ref': {
'type': 'user',
'id': 1010101010,
}
})
user_data_body = json.dumps({
'user': {
'user_id': 1010101010,
'activated_on': '2012-11-22 09:37:21',
'created_on': '2012-11-21 12:23:47',
'locale': 'en_GB',
'timezone': 'Europe/Copenhagen',
'mail': 'foo@bar.com',
'mails': [
{
'disabled': False,
'mail': 'foobar@example.com',
'primary': False,
'verified': True
}, {
'disabled': False,
'mail': 'foo@bar.com',
'primary': True,
'verified': True
}
],
# more properties ...
},
'profile': {
'last_seen_on': '2013-05-16 12:21:13',
'link': 'https://podio.com/users/1010101010',
'name': 'Foo Bar',
# more properties ...
}
# more properties ...
})
def test_login(self):
self.do_login()
def test_partial_pipeline(self):
self.do_partial_pipeline()
|