def METHOD_NAME(cls):
    # user
    cls.pwd = "godzillapwd"
    cls.user = User.objects.create_user("godzilla", "godzilla@zentral.io", cls.pwd)
    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"}
        ]
    }
    _, cls.ms, _ = MachineSnapshotCommit.objects.commit_machine_snapshot_tree(tree)
    cls.group_id = cls.ms.groups.all()[0].pk
    cls.bu_id = cls.ms.business_unit.pk
    cls.mbu_id = cls.ms.business_unit.meta_business_unit.pk
    cls.osx_app_instance = cls.ms.osx_app_instances.all()[0]
    tree = {"name": "yo bu2",
            "reference": "bu2",
            "source": source}
    cls.bu2, _ = BusinessUnit.objects.commit(tree)
    cls.bu2_id = cls.bu2.pk
    cls.mbu2_id = cls.bu2.meta_business_unit.pk
    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", meta_business_unit=cls.bu2.meta_business_unit)