summaryrefslogtreecommitdiff
path: root/tests/serializers_regress/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/serializers_regress/tests.py')
-rw-r--r--tests/serializers_regress/tests.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/serializers_regress/tests.py b/tests/serializers_regress/tests.py
index 83561e9c46..a35d7851e0 100644
--- a/tests/serializers_regress/tests.py
+++ b/tests/serializers_regress/tests.py
@@ -121,13 +121,13 @@ def data_compare(testcase, pk, klass, data):
if klass == BinaryData and data is not None:
testcase.assertEqual(bytes(data), bytes(instance.data),
"Objects with PK=%d not equal; expected '%s' (%s), got '%s' (%s)" % (
- pk, repr(bytes(data)), type(data), repr(bytes(instance.data)),
- type(instance.data))
+ pk, repr(bytes(data)), type(data), repr(bytes(instance.data)),
+ type(instance.data))
)
else:
testcase.assertEqual(data, instance.data,
"Objects with PK=%d not equal; expected '%s' (%s), got '%s' (%s)" % (
- pk, data, type(data), instance, type(instance.data))
+ pk, data, type(data), instance, type(instance.data))
)
def generic_compare(testcase, pk, klass, data):
@@ -205,7 +205,7 @@ test_data = [
(data_obj, 41, EmailData, None),
(data_obj, 42, EmailData, ""),
(data_obj, 50, FileData, 'file:///foo/bar/whiz.txt'),
-# (data_obj, 51, FileData, None),
+ # (data_obj, 51, FileData, None),
(data_obj, 52, FileData, ""),
(data_obj, 60, FilePathData, "/foo/bar/whiz.txt"),
(data_obj, 61, FilePathData, None),
@@ -308,10 +308,10 @@ The end."""),
(pk_obj, 601, BooleanPKData, True),
(pk_obj, 602, BooleanPKData, False),
(pk_obj, 610, CharPKData, "Test Char PKData"),
-# (pk_obj, 620, DatePKData, datetime.date(2006,6,16)),
-# (pk_obj, 630, DateTimePKData, datetime.datetime(2006,6,16,10,42,37)),
+ # (pk_obj, 620, DatePKData, datetime.date(2006,6,16)),
+ # (pk_obj, 630, DateTimePKData, datetime.datetime(2006,6,16,10,42,37)),
(pk_obj, 640, EmailPKData, "hovercraft@example.com"),
-# (pk_obj, 650, FilePKData, 'file:///foo/bar/whiz.txt'),
+ # (pk_obj, 650, FilePKData, 'file:///foo/bar/whiz.txt'),
(pk_obj, 660, FilePathPKData, "/foo/bar/whiz.txt"),
(pk_obj, 670, DecimalPKData, decimal.Decimal('12.345')),
(pk_obj, 671, DecimalPKData, decimal.Decimal('-12.345')),
@@ -322,7 +322,7 @@ The end."""),
(pk_obj, 680, IntegerPKData, 123456789),
(pk_obj, 681, IntegerPKData, -123456789),
(pk_obj, 682, IntegerPKData, 0),
-# (XX, ImagePKData
+ # (XX, ImagePKData
(pk_obj, 690, IPAddressPKData, "127.0.0.1"),
(pk_obj, 695, GenericIPAddressPKData, "fe80:1424:2223:6cff:fe8a:2e8a:2151:abcd"),
# (pk_obj, 700, NullBooleanPKData, True),
@@ -333,12 +333,12 @@ The end."""),
(pk_obj, 750, SmallPKData, 12),
(pk_obj, 751, SmallPKData, -12),
(pk_obj, 752, SmallPKData, 0),
-# (pk_obj, 760, TextPKData, """This is a long piece of text.
-# It contains line breaks.
-# Several of them.
-# The end."""),
-# (pk_obj, 770, TimePKData, datetime.time(10,42,37)),
-# (pk_obj, 790, XMLPKData, "<foo></foo>"),
+ # (pk_obj, 760, TextPKData, """This is a long piece of text.
+ # It contains line breaks.
+ # Several of them.
+ # The end."""),
+ # (pk_obj, 770, TimePKData, datetime.time(10,42,37)),
+ # (pk_obj, 790, XMLPKData, "<foo></foo>"),
(data_obj, 800, AutoNowDateTimeData, datetime.datetime(2006,6,16,10,42,37)),
(data_obj, 810, ModifyingSaveData, 42),