Added a missing test method in tests/migrations/test_writer.py.

This commit is contained in:
Yoong Kang Lim 2016-01-28 23:06:53 +11:00 committed by Tim Graham
parent a6d463b096
commit 5453aa66cf
1 changed files with 2 additions and 0 deletions

View File

@ -357,6 +357,8 @@ class WriterTests(SimpleTestCase):
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())