def METHOD_NAME(cls):
    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])
    source = {"module": "tests.zentral.io", "name": "Zentral Tests"}
    tree = {
        "source": source,
        "business_unit": {"name": "yo bu",
                          "reference": "bu1",
                          "source": source,
                          "links": [{"anchor_text": "bu link",
                                     "url": "http://bu-link.de"}]},
        "groups": [{"name": "yo grp",
                    "reference": "grp1",
                    "source": source,
                    "links": [{"anchor_text": "group link",
                               "url": "http://group-link.de"}]}],
        "serial_number": "0123456789",
        "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"}
        ],
        "network_interfaces": [
            {'address': '192.168.1.2',
             'broadcast': '192.168.64.255',
             'interface': 'en0',
             'mac': 'b6:21:01:a1:10:a0',
             'mask': '255.255.255.0'}
        ]
    }
    _, cls.ms, _ = MachineSnapshotCommit.objects.commit_machine_snapshot_tree(tree)
    cls.osx_app_instance = cls.ms.osx_app_instances.all()[0]
    cls.tag1 = Tag.objects.create(name="tag1")
    MachineTag.objects.create(tag=cls.tag1, serial_number=cls.ms.serial_number)
    cls.tag2 = Tag.objects.create(name="tag2")