Did I find the right examples for you? yes no

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

src/g/o/godjango-site-HEAD/godjango_cart/views.py   godjango-site(Download)
from payments.models import Customer
 
from .utils import update_email
 
from forms import CheckoutForm
 
        if 'email' in form_kwargs.get('data'):
            update_email(self.request.user, form_kwargs.get('data')['email'])
 
        customer = self.get_customer()

src/g/o/godjango-site-HEAD/godjango_cart/tests.py   godjango-site(Download)
from model_mommy import mommy
 
from .utils import get_customer, update_email
from .models import Subscription
from .forms import CheckoutForm
    def test_update_email(self):
        update = update_email(self.user, 'other@other.com')
        self.assertEqual(self.user.email, update)