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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
An availability class which delegates all calls to the
stockrecord itself.  This will exercise the deprecated methods on the
stockrecord that call "partner wrapper" classes.

This is backwards compatible with Oscar<0.6

src/d/j/django-oscar-HEAD/tests/integration/partner/availability_tests.py   django-oscar(Download)
 
        self.availability = availability.DelegateToStockRecord(
            self.product, self.stockrecord)
 
    def test_delegates_is_available_to_buy(self):

src/d/j/django-oscar-HEAD/oscar/test/factories.py   django-oscar(Download)
            D('0.00')  # Default to no tax
        ),
        availability=availability.DelegateToStockRecord(record),
        stockrecord=record
    )

src/d/j/django-oscar-0.7/oscar/test/factories.py   django-oscar(Download)
            D('0.00')  # Default to no tax
        ),
        availability=availability.DelegateToStockRecord(record),
        stockrecord=record
    )