コード例 #1
0
def test_user_apps():
    u = user.User(SESSION)
    authorized_apps = u.apps(APP_LIST)
    assert authorized_apps is not None
    assert len(authorized_apps['apps']) == 2
コード例 #2
0
def test_group_membership():
    u = user.User(SESSION)
    assert u.group_membership() is not None
    assert u.group_membership() == ["testgroup1", "testgroup2"]
コード例 #3
0
def test_last_name():
    u = user.User(SESSION)
    assert u.last_name() is not None
    assert u.last_name() == "Krug"
コード例 #4
0
def test_first_name():
    u = user.User(SESSION)
    assert u.first_name() is not None
    assert u.first_name() == "Andrew"
コード例 #5
0
def test_profile_picture():
    u = user.User(SESSION)
    assert u.profile_picture() is not None
    assert u.profile_picture() == "https://foo.bar.com/photo.png"
コード例 #6
0
def test_object_instantiation():
    user.User(SESSION)