diff options
Diffstat (limited to 'tests/regressiontests/null_fk/tests.py')
| -rw-r--r-- | tests/regressiontests/null_fk/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/regressiontests/null_fk/tests.py b/tests/regressiontests/null_fk/tests.py index abcfde9391..96a06b6769 100644 --- a/tests/regressiontests/null_fk/tests.py +++ b/tests/regressiontests/null_fk/tests.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import absolute_import, unicode_literals from django.db.models import Q from django.test import TestCase @@ -28,8 +28,8 @@ class NullFkTests(TestCase): self.assertQuerysetEqual( Comment.objects.select_related('post__forum__system_info').all(), [ - (c1.id, u'My first comment', '<Post: First Post>'), - (c2.id, u'My second comment', 'None') + (c1.id, 'My first comment', '<Post: First Post>'), + (c2.id, 'My second comment', 'None') ], transform = lambda c: (c.id, c.comment_text, repr(c.post)) ) @@ -40,8 +40,8 @@ class NullFkTests(TestCase): self.assertQuerysetEqual( Comment.objects.select_related('post__forum__system_info__system_details'), [ - (c1.id, u'My first comment', '<Post: First Post>'), - (c2.id, u'My second comment', 'None') + (c1.id, 'My first comment', '<Post: First Post>'), + (c2.id, 'My second comment', 'None') ], transform = lambda c: (c.id, c.comment_text, repr(c.post)) ) |
