This apparently is my bad, i've just created an empty project, and all the tests of it pass. Am working on tracking down the problem.
On Oct 23, 1:29 pm, jamesM <james.mackenzi...@googlemail.com> wrote: > Hi guys, > > i've decided to practice some test-driven development with django and > bumped into some small problems. > No idea is this a bug or my bad, but after running python manage.py > test i get the two tests which fail (error below). Both of them > expects unicode value, but receives a simple string. I'm using django > trunk. > > I could try fix the Expected value to the one which is returned, but i > guess that's not the best practice to start with:) > Maybe anyone has any ideas how to make those tests pass? > > cheers! > j > > ==== > output of $python manage.py test > ==== > > Creating test database... > Creating table auth_permission > Creating table auth_group > Creating table auth_user > Creating table auth_message > Creating table django_content_type > Creating table django_session > Creating table django_site > Creating table django_admin_log > Creating table documents > Installing index for auth.Permission model > Installing index for auth.Message model > Installing index for admin.LogEntry model > ............................F....F. > ====================================================================== > FAIL: Doctest: django.contrib.auth.tests.__test__.BASIC_TESTS > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/django/test/_doctest.py", > line 2180, in runTest > raise self.failureException(self.format_failure(new.getvalue())) > AssertionError: Failed doctest test for > django.contrib.auth.tests.__test__.BASIC_TESTS > File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/ > __init__.py", line unknown line number, in BASIC_TESTS > > ---------------------------------------------------------------------- > File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/ > __init__.py", line ?, in > django.contrib.auth.tests.__test__.BASIC_TESTS > Failed example: > u.email > Expected: > u'....@somewhere.org' > Got: > '....@somewhere.org' > ---------------------------------------------------------------------- > File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/ > __init__.py", line ?, in > django.contrib.auth.tests.__test__.BASIC_TESTS > Failed example: > u.password > Expected: > u'!' > Got: > '!' > > ====================================================================== > FAIL: Doctest: django.contrib.sites.tests > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/django/test/_doctest.py", > line 2180, in runTest > raise self.failureException(self.format_failure(new.getvalue())) > AssertionError: Failed doctest test for django.contrib.sites.tests > File "/usr/lib/python2.5/site-packages/django/contrib/sites/ > tests.py", line 0, in tests > > ---------------------------------------------------------------------- > File "/usr/lib/python2.5/site-packages/django/contrib/sites/tests.py", > line 21, in django.contrib.sites.tests > Failed example: > site.name > Expected: > u"example.com" > Got: > 'example.com' > ---------------------------------------------------------------------- > File "/usr/lib/python2.5/site-packages/django/contrib/sites/tests.py", > line 27, in django.contrib.sites.tests > Failed example: > site.name > Expected: > u"Example site" > Got: > 'Example site' > > ---------------------------------------------------------------------- > Ran 35 tests in 21.128s > > FAILED (failures=2) > Destroying test database... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---