diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2014-08-03 12:59:21 +0200 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-08-03 13:02:31 +0200 |
| commit | 72f1eb48df335c110f39d56f7978d95896a56bb8 (patch) | |
| tree | eebfa3fda53980bd60c7cdc59733beb556f910e8 /tests | |
| parent | a9fa3d466771b1f5d05fcf55f94abfaf7b0c3258 (diff) | |
Fixed #23156 -- Added missing BinaryField.deconstruct() method.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/field_deconstruction/tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/field_deconstruction/tests.py b/tests/field_deconstruction/tests.py index 5a424eea3c..be73f8b19e 100644 --- a/tests/field_deconstruction/tests.py +++ b/tests/field_deconstruction/tests.py @@ -347,3 +347,10 @@ class FieldDeconstructionTests(TestCase): self.assertEqual(path, "django.db.models.URLField") self.assertEqual(args, []) self.assertEqual(kwargs, {"max_length": 231}) + + def test_binary_field(self): + field = models.BinaryField() + name, path, args, kwargs = field.deconstruct() + self.assertEqual(path, "django.db.models.BinaryField") + self.assertEqual(args, []) + self.assertEqual(kwargs, {}) |
