summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorBrandon Chinn <brandonchinn178@gmail.com>2016-11-11 17:07:15 -0800
committerTim Graham <timograham@gmail.com>2016-11-15 18:10:45 -0500
commit6573274161ee589e89077192239e0bd01cbd692a (patch)
tree2c6ae810625958d7ed2d32be429af0bb6805b2af /tests/postgres_tests/test_array.py
parent74ed20b49ade9f1cbd9af294e35478d8e0f59344 (diff)
Refs #27003 -- Fixed SimpleArrayField crash on converted values.
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index db67ab714e..886a983180 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -677,6 +677,11 @@ class TestSimpleFormField(PostgreSQLTestCase):
self.assertIsInstance(form_field, SimpleArrayField)
self.assertEqual(form_field.max_length, 4)
+ def test_already_converted_value(self):
+ field = SimpleArrayField(forms.CharField())
+ vals = ['a', 'b', 'c']
+ self.assertEqual(field.clean(vals), vals)
+
class TestSplitFormField(PostgreSQLTestCase):