def test_discount_qty_price(self):
        product = Product.objects.get(slug='PY-Rocks')
        price = Price(product=product, quantity=Decimal('10'), price=Decimal("10.00"))
        price.save()

        self.assertEqual(product.unit_price, Decimal("19.50"))
        self.assertEqual(product.get_qty_price(Decimal('1')), Decimal("19.50"))
        self.assertEqual(product.get_qty_price(Decimal('2')), Decimal("19.50"))
        self.assertEqual(product.get_qty_price(Decimal('10')), Decimal("10.00"))
The download progress for an offline playlist.
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py/ProductTest.test_discount_qty_price--crossover with--dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py/Playlist.offline_download_completed