def METHOD_NAME(cls):
    cls.mbu = MetaBusinessUnit.objects.create(name=get_random_string(12))
    cls.mbu.create_enrollment_business_unit()
    cls.realm = Realm.objects.create(
        name=get_random_string(12),
        backend="ldap",
        username_claim="username",
        email_claim="email",
    )
    username = get_random_string(12)
    email = f"{username}@example.com"
    cls.realm_user = RealmUser.objects.create(
        realm=cls.realm,
        claims={"username": username,
                "email": email},
        username=username,
        email=email,
    )