def test_net_stock_level_with_allocation(self):
        self.stockrecord.allocate(5)
        self.assertEqual(10-5, self.stockrecord.net_stock_level)
dataset/ETHPy150Open django-oscar/django-oscar/tests/unit/partner/model_tests.py/TestStockRecord.test_net_stock_level_with_allocation/original