diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-05 16:13:57 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-05 19:15:02 -0500 |
| commit | 0f54cf28c09a80254571487e3af93be2096cfdac (patch) | |
| tree | 49b4c4b172630b57adebfb41af37d4fc92e6cdcb /tests/model_fields | |
| parent | 235124d3eaf6cc7ab9f97f1d1467d1caf18e1016 (diff) | |
Added UUIDField.deconstruct()
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_uuid.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 = [ |
