Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweaked docstrings from previous commit.

  • Loading branch information...
commit f9c7732e964980bdb8bf805869ce8d2494007ea0 1 parent a6691e5
@timgraham timgraham authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/forms_tests/tests/test_forms.py
View
5 tests/forms_tests/tests/test_forms.py
@@ -2341,7 +2341,8 @@ def clean(self):
def test_baseform_repr(self):
"""
- Test for baseForm method __repr__
+ BaseForm.__repr__() should contain some basic information about the
+ form.
"""
p = Person()
self.assertEqual(repr(p), "<Person bound=False, valid=Unknown, fields=(first_name;last_name;birthday)>")
@@ -2355,7 +2356,7 @@ def test_baseform_repr(self):
def test_baseform_repr_dont_trigger_validation(self):
"""
- Test to verify that __repr__ method don't trigger the validation
+ BaseForm.__repr__() shouldn't trigger the form validation.
"""
p = Person({'first_name': 'John', 'last_name': 'Lennon', 'birthday': 'fakedate'})
repr(p)
Please sign in to comment.
Something went wrong with that request. Please try again.