summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2014-08-03 12:59:21 +0200
committerBaptiste Mispelon <bmispelon@gmail.com>2014-08-03 15:28:14 +0200
commit23b0d636d3dc8b37fee6dc7539b0cd1f245b673a (patch)
tree0c3f1fa4efe5174a6c61f09ae865410c4d0343c6 /tests
parent0b1d0afc92e1dbc353418953960a083cbba63c50 (diff)
[1.7.x] Fixed #23156 -- Added missing BinaryField.deconstruct() method.
Backport of 72f1eb48df335c110f39d56f7978d95896a56bb8 from master.
Diffstat (limited to 'tests')
-rw-r--r--tests/field_deconstruction/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/field_deconstruction/tests.py b/tests/field_deconstruction/tests.py
index cf699aeecd..3d593091f4 100644
--- a/tests/field_deconstruction/tests.py
+++ b/tests/field_deconstruction/tests.py
@@ -364,3 +364,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, {})