def set(self, quantity):
        data = {}
        data['quantity'] = self._normalize_quantity(quantity)
         
        response = self.subscription.customer.product.client.make_request(
            path = 'customers/set-item-quantity',
            params = {
                'code': self.subscription.customer.code,
                'itemCode': self.code,
            },
            data = data,
            method = 'POST',
        )
        
        return self.subscription.customer.load_data_from_xml(response.content)
Tests the PostgreSQLStore on a locally-hosted PostgreSQL database
dataset/ETHPy150Open SeanOC/sharpy/sharpy/product.py/Item.set--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/openid/test/storetest.py/test_postgresql