You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_custom_user_model.py 361B

123456789101112
  1. from django.test import TestCase
  2. from oscar.core import compat
  3. class TestCustomUserModel(TestCase):
  4. def test_can_be_created_without_error(self):
  5. klass = compat.get_user_model()
  6. try:
  7. klass.objects.create_user('_', 'a@a.com', 'pa55w0rd')
  8. except Exception, e:
  9. self.fail("Unable to create user model: %s" % e)