'Test update forum role membership with user\'s email and username.'

def test_update_forum_role_membership(self):

    seed_permissions_roles(self.course.id)
    for user in [self.instructor, self.other_user]:
        for identifier_attr in [user.email, user.username]:
            for rolename in ['Administrator', 'Moderator', 'Community    TA']:
                for action in ['allow', 'revoke']:
                    self.assert_update_forum_role_membership(user, identifier_attr, rolename, action)
