summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYoong Kang Lim <yoongkang.lim@gmail.com>2016-01-28 23:06:53 +1100
committerTim Graham <timograham@gmail.com>2016-01-28 10:39:03 -0500
commita0e0b37dae9a03468177bea45e97eed74c78eb13 (patch)
tree208ca4943d945b386cd9bd8aff78901c289dcd8b /tests
parentc2dfc3616af0b68f085fdf6ee41774c266fe54c5 (diff)
[1.8.x] Added a missing test method in tests/migrations/test_writer.py.
Backport of 5453aa66cfdf228f40dc1997d811ca986de405a3 from master
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_writer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py
index a6527caea4..f03e84c7ed 100644
--- a/tests/migrations/test_writer.py
+++ b/tests/migrations/test_writer.py
@@ -281,6 +281,8 @@ class WriterTests(TestCase):
SettingsReference("someapp.model", "AUTH_USER_MODEL"),
("settings.AUTH_USER_MODEL", {"from django.conf import settings"})
)
+
+ def test_serialize_iterators(self):
self.assertSerializedResultEqual(
((x, x * x) for x in range(3)),
("((0, 0), (1, 1), (2, 4))", set())