mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.8.x] Added a missing test method in tests/migrations/test_writer.py.
Backport of 5453aa66cfdf228f40dc1997d811ca986de405a3 from master
This commit is contained in:
parent
c2dfc3616a
commit
a0e0b37dae
@ -281,6 +281,8 @@ class WriterTests(TestCase):
|
|||||||
SettingsReference("someapp.model", "AUTH_USER_MODEL"),
|
SettingsReference("someapp.model", "AUTH_USER_MODEL"),
|
||||||
("settings.AUTH_USER_MODEL", {"from django.conf import settings"})
|
("settings.AUTH_USER_MODEL", {"from django.conf import settings"})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_serialize_iterators(self):
|
||||||
self.assertSerializedResultEqual(
|
self.assertSerializedResultEqual(
|
||||||
((x, x * x) for x in range(3)),
|
((x, x * x) for x in range(3)),
|
||||||
("((0, 0), (1, 1), (2, 4))", set())
|
("((0, 0), (1, 1), (2, 4))", set())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user