Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created November 4, 2011 15:48
Show Gist options
  • Save terrycojones/1339653 to your computer and use it in GitHub Desktop.
Save terrycojones/1339653 to your computer and use it in GitHub Desktop.
$ ./manage.py test accounts.FormTestClass.test_ntoll
Creating test database for alias 'default'...
now
data before test is {'username': '30db2a80-e979-4239-a52a-aeef8f655988oodl.es', 'name': 'name-30db2a80-e979-4239-a52a-aeef8f655988', 'email': '[email protected]'}
init form data is {'username': '30db2a80-e979-4239-a52a-aeef8f655988oodl.es', 'name': 'name-30db2a80-e979-4239-a52a-aeef8f655988', 'email': '[email protected]'}
{'_changed_data': None,
'_errors': {},
'auto_id': 'id_%s',
'cleaned_data': {'email': u'[email protected]',
'name': u'name-30db2a80-e979-4239-a52a-aeef8f655988',
'username': u'30db2a80-e979-4239-a52a-aeef8f655988oodl.es'},
'data': {'email': '[email protected]',
'name': 'name-30db2a80-e979-4239-a52a-aeef8f655988',
'username': '30db2a80-e979-4239-a52a-aeef8f655988oodl.es'},
'empty_permitted': False,
'error_class': <class 'django.forms.util.ErrorList'>,
'fields': {'name': <django.forms.fields.CharField object at 0xa1cb98c>, 'username': <django.forms.fields.CharField object at 0xa1cb9ec>, 'email': <django.forms.fields.EmailField object at 0xa1cba4c>},
'files': {},
'initial': {},
'is_bound': True,
'label_suffix': ':',
'prefix': None}
F
======================================================================
FAIL: test_ntoll (apps.accounts.unit_tests.test_forms.FormTestClass)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/terry/fluidinfo/src/fluidinfo.com/fluidinfo/apps/accounts/unit_tests/test_forms.py", line 29, in test_ntoll
self.assertEquals(False, f.is_valid(), f.errors)
AssertionError: False != True :
----------------------------------------------------------------------
Ran 1 test in 0.002s
FAILED (failures=1)
Destroying test database for alias 'default'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment