def METHOD_NAME(cls):
    super().METHOD_NAME()
    cls.domain = 'old_shelf'
    cls.domain_obj = create_domain(cls.domain)
    cls.role = UserRole.create(domain=cls.domain, name='App Editor')
    cls.qualified_role_id = cls.role.get_qualified_id()
    cls.user1 = WebUser.create(
        cls.domain_obj.name,
        'edith@wharton.com',
        'badpassword',
        None,
        None,
        email='edith@wharton.com',
        first_name='Edith',
        last_name='Wharton',
        role_id=cls.role.get_id,
    )
    cls.user2 = WebUser.create(
        cls.domain_obj.name,
        'george@eliot.com',
        'anotherbadpassword',
        None,
        None,
        email='george@eliot.com',
        first_name='George',
        last_name='Eliot',
        is_admin=True,
    )
    cls.invited_user = Invitation.objects.create(
        email='invited_to_domain@user.com',
        domain=cls.domain_obj.name,
        invited_by='tester@test.com',
        invited_on=datetime.utcnow(),
        role=cls.qualified_role_id,
    )
    cls.other_domain = 'new_shelf'
    cls.other_domain_obj = create_domain(cls.other_domain)
    cls.other_role = UserRole.create(domain=cls.domain, name='User Admin')
    cls.user10 = WebUser.create(
        cls.other_domain_obj.name,
        'susan@choi.com',
        'secret',
        None,
        None,
        email='susan@choi.com',
        first_name='Susan',
        last_name='Choi',
        role_id=cls.other_role.get_id,
    )
    cls.user11 = WebUser.create(
        cls.other_domain_obj.name,
        'zadie@smith.com',
        'secret',
        None,
        None,
        email='zadie@smith.com',
        first_name='Zadie',
        last_name='Smith',
        role_id=cls.other_role.get_id,
    )
    cls.other_invited_user = Invitation.objects.create(
        email='invited_to_other_domain@user.com',
        domain=cls.other_domain_obj.name,
        invited_by='tester@test.com',
        invited_on=datetime.utcnow(),
        role=cls.other_role.get_qualified_id()
    )
    populate_user_index([cls.user1, cls.user2, cls.user10, cls.user11])