def METHOD_NAME(cls):
    super().METHOD_NAME()
    cls.factory = APIRequestFactory()
    state = cls.create_state()
    district = cls.create_district(state=state)
    cls.user = cls.create_user(district=district, username="test user")
    cls.facility = cls.create_facility(district=district, user=cls.user)
    cls.asset1_location = AssetLocation.objects.create(
        name="asset1 location", location_type=1, facility=cls.facility
    )
    cls.asset = Asset.objects.create(
        name="Test Asset",
        current_location=cls.asset1_location,
        asset_type=50,
        warranty_amc_end_of_validity=make_aware(datetime(2021, 4, 1)),
    )