Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Allow a product to be bought while there is stock.  This policy is
instantiated with a stock number (``num_available``).  It ensures that the
product is only available to buy while there is stock available.

This is suitable for physical products where back orders (eg allowing
purchases when there isn't stock available) are not permitted.

src/d/j/django-oscar-HEAD/tests/unit/partner/availability_tests.py   django-oscar(Download)
    def setUp(self):
        self.availability = availability.StockRequired(5)
    def test_is_available_to_buy(self):
    def setUp(self):
        self.availability = availability.StockRequired(0)
    def test_is_available_to_buy(self):