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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/j/django-oscar-HEAD/tests/functional/stock_alert_tests.py   django-oscar(Download)
        factories.create_order(basket=self.basket)
 
        alert = StockAlert.objects.get(stockrecord=self.stockrecord)
        self.assertEqual(StockAlert.OPEN, alert.status)
 
        # Restock product
        self.stockrecord.num_in_stock = 15
        self.stockrecord.save()
 
        alert = StockAlert.objects.get(stockrecord=self.stockrecord)