def remove(self, elem):
        """Remove a requirement.

        :param elem: a string or :class:`Requirement` instance.
        """
        if isinstance(elem, text_type):
            for requirement in self:
                if requirement.package == elem:
                    return super(Requirements, self).remove(requirement)
        return super(Requirements, self).remove(elem)
def step_impl(context, user_names_str):
    if not hasattr(context, 'users'):
        context.users = {}

    user_names = [name.strip() for name in re.split('and|,', user_names_str)]
    for user_name in user_names:
        token = 'fake_token_' + user_name
        user_id = context.helpers.create_test_user(user_name, token)
        context.users[user_name] = {'token': token, 'id': user_id}