def METHOD_NAME(self):
    self.user = get_user_model().objects.create_superuser(
        username='root',
        password='password',
        email='email@email.pl'
    )
    result = self.client.login(username='root', password='password')
    self.assertEqual(result, True)
    self.factory = RequestFactory()
    self.dca = DataCenterAssetFactory(
        hostname='ralph1.allegro.pl',
        rack=RackFactory(),
        position=1
    )
    self.custom_fields_inline_prefix = 'custom_fields-customfieldvalue-content_type-object_id-'  # noqa
    self.custom_field_str = CustomField.objects.create(
        name='test_str', type=CustomFieldTypes.STRING, default_value='xyz'
    )
    self.custom_field_choices = CustomField.objects.create(
        name='test_choice', type=CustomFieldTypes.CHOICE,
        choices='qwerty|asdfgh|zxcvbn', default_value='zxcvbn',
        use_as_configuration_variable=True,
    )