def METHOD_NAME(cls):
    cls.service_account = User.objects.create(
        username=get_random_string(12),
        email="{}@zentral.io".format(get_random_string(12)),
        is_service_account=True
    )
    cls.user = User.objects.create_user("godzilla", "godzilla@zentral.io", get_random_string(12))
    cls.group = Group.objects.create(name=get_random_string(12))
    cls.service_account.groups.set([cls.group])
    cls.user.groups.set([cls.group])
    cls.api_key = APIToken.objects.update_or_create_for_user(cls.service_account)
    cls.mbu = MetaBusinessUnit.objects.create(name=get_random_string(12))
    cls.dep_enrollment_session, _, _ = force_dep_enrollment_session(
        cls.mbu, authenticated=True, completed=True
    )
    cls.enrolled_device = cls.dep_enrollment_session.enrolled_device