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

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

src/d/j/django-oscar-HEAD/tests/integration/customer/test_custom_user_model.py   django-oscar(Download)
from django.test import TestCase
 
from oscar.apps.customer.forms import ProfileForm
from oscar.core.compat import get_user_model, existing_user_fields
 
    def test_profile_form_doesnt_expose_extra_field(self):
        form = ProfileForm(self.user_klass())
        expected_fields = set(['first_name', 'last_name', 'email'])
        self.assertTrue(expected_fields == set(form.fields))