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

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

src/d/j/django-oscar-HEAD/tests/integration/catalogue/product_tests.py   django-oscar(Download)
    def setUp(self):
        clothing = ProductClass.objects.create(
            name='Clothing', requires_shipping=True)
        self.parent = clothing.products.create(
            title="Parent")

src/d/j/django-oscar-HEAD/tests/integration/catalogue/product_class_tests.py   django-oscar(Download)
    def test_slug_is_auto_created(self):
        books = models.ProductClass.objects.create(
            name="Book",
        )
        self.assertEqual('book', books.slug)
 
    def test_has_attribute_for_whether_shipping_is_required(self):
        models.ProductClass.objects.create(
            name="Download",

src/d/j/django-oscar-HEAD/tests/integration/partner/strategy_tests.py   django-oscar(Download)
    def test_product_which_doesnt_track_stock(self):
        product_class = models.ProductClass.objects.create(
            name="Digital", track_stock=False)
        product = factories.create_product(
            product_class=product_class,

src/d/j/django-oscar-HEAD/tests/integration/order/creator_tests.py   django-oscar(Download)
    def test_does_not_allocate_stock(self):
        ProductClass.objects.create(
            name="Digital", track_stock=False)
        product = factories.create_product(product_class="Digital")
        record = factories.create_stockrecord(product, num_in_stock=None)