Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/j/django-lfs-HEAD/lfs/cart/tests.py   django-lfs(Download)
from lfs.cart.views import add_to_cart
from lfs.cart.views import added_to_cart_items
from lfs.cart.views import refresh_cart
from lfs.catalog.models import DeliveryTime
from lfs.catalog.models import Product
        request.session = self.session
        request.user = self.user
        refresh_cart(request)
        self.assertEqual(cart.get_amount_of_items(), 2.0)
 

src/d/j/django-lfs-0.7.7/lfs/cart/tests.py   django-lfs(Download)
from lfs.cart.views import add_to_cart
from lfs.cart.views import added_to_cart_items
from lfs.cart.views import refresh_cart
from lfs.catalog.models import DeliveryTime
from lfs.catalog.models import Product
        request.user = self.user
 
        refresh_cart(request)
        self.assertEqual(cart.get_amount_of_items(), 2.0)