def METHOD_NAME(cls):
    # user
    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.user.groups.set([cls.group])
    # machine
    cls.serial_number = "0123456789"
    MachineSnapshotCommit.objects.commit_machine_snapshot_tree({
        "source": {"module": "tests.zentral.io", "name": "Zentral Tests"},
        "serial_number": cls.serial_number,
        "os_version": {'name': 'OS X', 'major': 10, 'minor': 11, 'patch': 1},
        "osx_app_instances": [
            {'app': {'bundle_id': 'io.zentral.baller',
                     'bundle_name': 'Baller.app',
                     'bundle_version': '123',
                     'bundle_version_str': '1.2.3'},
             'bundle_path': "/Applications/Baller.app"}
        ]
    })
    cls.machine = MetaMachine(cls.serial_number)
    cls.url_msn = cls.machine.get_urlsafe_serial_number()