summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-01-22 03:45:30 -0800
committerAndrew Godwin <andrew@aeracode.org>2014-01-22 03:45:30 -0800
commita5ec11c4bbb8f82e02871f154b3cfe0008b00a2b (patch)
tree698016fbd568b2854d0198c93370611487f265b3 /tests
parenta4fbdcdf660fe1f032a332fb51ad37104117b41f (diff)
parent047394f79c2cbc6cf44684a1f0d17aba1ddfe1c8 (diff)
Merge pull request #2198 from Markush2010/ticket21852
Fixed #21852 -- Make migration writer serialize iterators
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_writer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py
index 8856e8fbb3..5934f8cf47 100644
--- a/tests/migrations/test_writer.py
+++ b/tests/migrations/test_writer.py
@@ -102,6 +102,13 @@ class WriterTests(TestCase):
set(["from django.conf import settings"]),
)
)
+ self.assertSerializedResultEqual(
+ ((x, x*x) for x in range(3)),
+ (
+ "((0, 0), (1, 1), (2, 4))",
+ set(),
+ )
+ )
def test_simple_migration(self):
"""