old_contents: from django.utils.functional import cached_property
  
  from nodeconductor_openstack.openstack.tests import fixtures as openstack_fixtures
  
  from . import factories
  from .. import models
  
  
  class OpenStackTenantFixture(openstack_fixtures.OpenStackFixture):
  
      @cached_property
      def openstack_tenant_service_settings(self):
          return factories.OpenStackTenantServiceSettingsFactory(
              name=self.openstack_tenant.name,
              scope=self.openstack_tenant,
              customer=self.customer,
              backend_url=self.openstack_service_settings.backend_url,
              username=self.openstack_tenant.user_username,
              password=self.openstack_tenant.user_password,
              options={
                  'availability_zone': self.openstack_tenant.availability_zone,
                  'tenant_id': self.openstack_tenant.backend_id,
              },
          )
  
      @cached_property
      def openstack_tenant_service(self):
          return factories.OpenStackTenantServiceFactory(
              name=self.openstack_tenant.name,
              customer=self.customer,
              settings=self.openstack_tenant_service_settings
          )
  
      @cached_property
      def openstack_tenant_spl(self):
          return factories.OpenStackTenantServiceProjectLinkFactory(
              project=self.project, service=self.openstack_tenant_service)
  
      @cached_property
      def openstack_volume(self):
          return factories.VolumeFactory(
              service_project_link=self.openstack_tenant_spl,
              state=models.Volume.States.OK,
              runtime_state=models.Volume.RuntimeStates.OFFLINE,
          )
  
      @cached_property
      def openstack_instance(self):
          return factories.InstanceFactory(
              service_project_link=self.openstack_tenant_spl,
              state=models.Instance.States.OK,
              runtime_state=models.Instance.RuntimeStates.SHUTOFF,
          )
  
new_contents: from django.utils.functional import cached_property
  
  from nodeconductor_openstack.openstack.tests import fixtures as openstack_fixtures
  
  from . import factories
  from .. import models
  
  
  class OpenStackTenantFixture(openstack_fixtures.OpenStackFixture):
  
      @cached_property
      def openstack_tenant_service_settings(self):
          return factories.OpenStackTenantServiceSettingsFactory(
              name=self.tenant.name,
              scope=self.tenant,
              customer=self.customer,
              backend_url=self.openstack_service_settings.backend_url,
              username=self.openstack_tenant.user_username,
              password=self.openstack_tenant.user_password,
              options={
                  'availability_zone': self.openstack_tenant.availability_zone,
                  'tenant_id': self.openstack_tenant.backend_id,
              },
          )
  
      @cached_property
      def openstack_tenant_service(self):
          return factories.OpenStackTenantServiceFactory(
              name=self.tenant.name,
              customer=self.customer,
              settings=self.openstack_tenant_service_settings
          )
  
      @cached_property
      def openstack_tenant_spl(self):
          return factories.OpenStackTenantServiceProjectLinkFactory(
              project=self.project, service=self.openstack_tenant_service)
  
      @cached_property
      def openstack_volume(self):
          return factories.VolumeFactory(
              service_project_link=self.openstack_tenant_spl,
              state=models.Volume.States.OK,
              runtime_state=models.Volume.RuntimeStates.OFFLINE,
          )
  
      @cached_property
      def openstack_instance(self):
          return factories.InstanceFactory(
              service_project_link=self.openstack_tenant_spl,
              state=models.Instance.States.OK,
              runtime_state=models.Instance.RuntimeStates.SHUTOFF,
          )
  
subject: Fix naming in openstack_tenant tests