From 0f54cf28c09a80254571487e3af93be2096cfdac Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 5 Feb 2015 16:13:57 -0500 Subject: Added UUIDField.deconstruct() --- tests/model_fields/test_uuid.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/model_fields') diff --git a/tests/model_fields/test_uuid.py b/tests/model_fields/test_uuid.py index 13fe245be3..d2ffe71a3a 100644 --- a/tests/model_fields/test_uuid.py +++ b/tests/model_fields/test_uuid.py @@ -35,6 +35,14 @@ class TestSaveLoad(TestCase): self.assertEqual(loaded.field, None) +class TestMigrations(TestCase): + + def test_deconstruct(self): + field = models.UUIDField() + name, path, args, kwargs = field.deconstruct() + self.assertEqual(kwargs, {}) + + class TestQuerying(TestCase): def setUp(self): self.objs = [ -- cgit v1.3