def METHOD_NAME(self):
    setup_subscription_plans()
    # Create a user
    self.user = Person.objects.create_user(username="user", password="abc123")
    # Create a project
    self.project = Project.objects.create(
        name="project1", is_public=False, owner=self.user
    )
    # We ensure the project owner and the post request sender are the same
    # because (currently) we want the request to succeed no matter who sends it.
    self.token_qfield = AuthToken.objects.get_or_create(
        user=self.project.owner,
        client_type=AuthToken.ClientType.QFIELD,
    )[0]
    self.token_worker = AuthToken.objects.get_or_create(
        user=self.project.owner,
        client_type=AuthToken.ClientType.WORKER,
    )[0]
    self.token_qfieldsync = AuthToken.objects.get_or_create(
        user=self.project.owner,
        client_type=AuthToken.ClientType.QFIELDSYNC,
    )[0]
    self.assertEqual(self.project.owner.id, self.token_qfield.user.id)
    account = self.user.useraccount
    subscription = account.current_subscription
    subscription.status = SubscriptionStatus.INACTIVE_DRAFT
    subscription.save()
    # Check user has inactive subscription
    self.assertFalse(account.current_subscription.is_active)
    # Check user cannot have online vector data
    self.assertFalse(subscription.plan.is_external_db_supported)
    plan = subscription.plan
    plan.storage_mb = 0
    plan.save()
    delete_db_and_role("test", self.user.username)
    self.geodb = Geodb.objects.create(
        user=self.user,
        dbname="test",
        hostname="geodb",
        port=5432,
    )
    self.conn = psycopg2.connect(
        dbname="test",
        user=os.environ.get("GEODB_USER"),
        password=os.environ.get("GEODB_PASSWORD"),
        host="geodb",
        port=5432,
    )
    cur = self.conn.cursor()
    cur.execute(
        """
        CREATE TABLE point (
            id          integer,
            geometry   geometry(point, 2056)
        );
        """
    )
    self.conn.commit()
    cur.execute(
        """
        INSERT INTO point(id, geometry)
        VALUES(1, ST_GeomFromText('POINT(2725505 1121435)', 2056));
        """
    )
    self.conn.commit()