summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/forms/tests/fields.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/tests/fields.py b/tests/regressiontests/forms/tests/fields.py
index 03e0ff65a3..fe98c925e4 100644
--- a/tests/regressiontests/forms/tests/fields.py
+++ b/tests/regressiontests/forms/tests/fields.py
@@ -25,6 +25,7 @@ Other than that, the Field subclasses have class-specific options for
__init__(). For example, CharField has a max_length option.
"""
import datetime
+import pickle
import re
import os
import urllib2
@@ -762,6 +763,9 @@ class FieldsTests(SimpleTestCase):
self.assertEqual(False, f.clean('false'))
self.assertEqual(False, f.clean('FaLsE'))
+ def test_boolean_picklable(self):
+ self.assertIsInstance(pickle.loads(pickle.dumps(BooleanField())), BooleanField)
+
# ChoiceField #################################################################
def test_choicefield_1(self):