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/unit/offer/results_tests.py   django-oscar(Download)
    def test_can_filter_offer_discounts(self):
        result = models.BasketDiscount(D('2.00'))
        self.applications.add(self.offer, result)
        self.assertEqual(1, len(self.applications.offer_discounts))
 

src/d/j/django-oscar-HEAD/tests/unit/offer/applicator_tests.py   django-oscar(Download)
    def setUp(self):
        offer = models.ConditionalOffer()
        self.applications = OfferApplications()
        for i in range(4):
            self.applications.add(offer, models.BasketDiscount(D('5.00')))