summaryrefslogtreecommitdiff
path: root/tests/field_subclassing
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2014-03-02 15:25:53 +0100
committerTim Graham <timograham@gmail.com>2014-03-03 07:38:09 -0500
commit0d912258921a442c48d5787228db2db5af7e8fa5 (patch)
treef6826425de5bca2498c46e5242b870282a34eda2 /tests/field_subclassing
parent6acaa5238668593d6d854b28dbfa65e95796585c (diff)
Fixed many typos in comments and docstrings.
Thanks Piotr Kasprzyk for help with the patch.
Diffstat (limited to 'tests/field_subclassing')
-rw-r--r--tests/field_subclassing/fields.py2
-rw-r--r--tests/field_subclassing/tests.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/field_subclassing/fields.py b/tests/field_subclassing/fields.py
index e9c7a982e8..43ece22e82 100644
--- a/tests/field_subclassing/fields.py
+++ b/tests/field_subclassing/fields.py
@@ -59,7 +59,7 @@ class SmallerField(SmallField):
class JSONField(six.with_metaclass(models.SubfieldBase, models.TextField)):
- description = ("JSONField automatically serializes and desializes values to "
+ description = ("JSONField automatically serializes and deserializes values to "
"and from JSON.")
def to_python(self, value):
diff --git a/tests/field_subclassing/tests.py b/tests/field_subclassing/tests.py
index 3045f7d226..6a3d1cad20 100644
--- a/tests/field_subclassing/tests.py
+++ b/tests/field_subclassing/tests.py
@@ -39,7 +39,7 @@ class CustomField(TestCase):
# Custom fields still have normal field's attributes.
self.assertEqual(m._meta.get_field("data").verbose_name, "small field")
- # The m.data attribute has been initialised correctly. It's a Small
+ # The m.data attribute has been initialized correctly. It's a Small
# object.
self.assertEqual((m.data.first, m.data.second), (1, 2))
@@ -100,7 +100,7 @@ class CustomField(TestCase):
http://users.rcn.com/python/download/Descriptor.htm#properties
"""
# Even when looking for totally different properties, SubfieldBase's
- # non property like behaviour made inspect crash. Refs #12568.
+ # non property like behavior made inspect crash. Refs #12568.
data = dict(inspect.getmembers(MyModel))
self.assertIn('__module__', data)
self.assertEqual(data['__module__'], 'field_subclassing.models')