diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2015-03-23 15:38:25 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2015-03-23 15:38:25 +0100 |
| commit | 1aadade373336c3f534986cdcc0ba33714d85c8e (patch) | |
| tree | 9bde3c8cfd44ec2bc3e9c70ae0fe0bbd17e00f6e /tests | |
| parent | 00e667728ba3ef1b5cb3de0e11c7648b89315a91 (diff) | |
Fixed #24521 -- Added support for serializing frozensets in migrations.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_writer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/migrations/test_writer.py b/tests/migrations/test_writer.py index 28c68d871a..aa12c7c612 100644 --- a/tests/migrations/test_writer.py +++ b/tests/migrations/test_writer.py @@ -347,6 +347,10 @@ class WriterTests(TestCase): self.assertSerializedEqual(FoodManager('a', 'b')) self.assertSerializedEqual(FoodManager('x', 'y', c=3, d=4)) + def test_serialize_frozensets(self): + self.assertSerializedEqual(frozenset()) + self.assertSerializedEqual(frozenset("let it go")) + def test_simple_migration(self): """ Tests serializing a simple migration. |
