'Checks if specified user present on Course Team page'

def _assert_user_present(self, user, present=True):

    if present:
        self.page.wait_for((lambda : (user.get('username') in self.page.usernames)), description='Wait    for    user    to    be    present')
    else:
        self.page.wait_for((lambda : (user.get('username') not in self.page.usernames)), description='Wait    for    user    to    be    absent')
