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

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

src/h/i/hiicart-HEAD/hiicart/tests.py   hiicart(Download)
    def setUp(self):
        self.test_user = User.objects.create(username="tester", email="foo@bar.com")
        self.cart = HiiCart.objects.create(user=self.test_user)
        self.lineitem = LineItem.objects.create(cart=self.cart,name="Test Item",
                                                quantity=1, sku="1",
        """
        self.assertEqual(self.cart.total, Decimal("1.99"))
        lineitem2 = LineItem.objects.create(cart=self.cart, name="Test 2",
                                            quantity=1, sku="2",
                                            unit_price=Decimal("5.00"))
        """
        self.assertEqual(self.cart.total, Decimal("1.99"))
        lineitem2 = LineItem.objects.create(cart=self.cart, name="Test 2",
                                            quantity=1, sku="2",
                                            unit_price=Decimal("5.00"))

src/h/i/hiicart-HEAD/hiicart/tests/core.py   hiicart(Download)
        """
        self.assertEqual(self.cart.total, Decimal("1.99"))
        lineitem2 = LineItem.objects.create(cart=self.cart, name="Test 2",
                                            quantity=1, sku="2",
                                            unit_price=Decimal("5.00"))
        """
        self.assertEqual(self.cart.total, Decimal("1.99"))
        lineitem2 = LineItem.objects.create(cart=self.cart, name="Test 2",
                                            quantity=1, sku="2",
                                            unit_price=Decimal("5.00"))

src/h/i/hiicart-HEAD/hiicart/tests/base.py   hiicart(Download)
    def setUp(self):
        self.test_user = User.objects.get_or_create(username='tester', email='foo@bar.com')
        self.test_user = self.test_user[0]
        self.cart = HiiCart.objects.create(user=self.test_user)
        self.lineitem = LineItem.objects.create(cart=self.cart,name="Test Item",