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
def test_group_membership(): u = user.User(SESSION) assert u.group_membership() is not None assert u.group_membership() == ["testgroup1", "testgroup2"]
def test_last_name(): u = user.User(SESSION) assert u.last_name() is not None assert u.last_name() == "Krug"
def test_first_name(): u = user.User(SESSION) assert u.first_name() is not None assert u.first_name() == "Andrew"
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"
def test_object_instantiation(): user.User(SESSION)