Пример #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)