diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2007-09-14 02:05:45 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2007-09-14 02:05:45 +0000 |
| commit | 8b0eaba0ee66e2ec6307ae9e34cf8610614d67a6 (patch) | |
| tree | a1d95d33b99a42cba76787b927110a8c88d6f55a /tests | |
| parent | 0b1f4e3c7beb6f205515f11f443aa8ae99e07656 (diff) | |
Moved `flatatt` function tests to the util test module.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/forms/tests.py | 8 | ||||
| -rw-r--r-- | tests/regressiontests/forms/util.py | 12 |
2 files changed, 12 insertions, 8 deletions
diff --git a/tests/regressiontests/forms/tests.py b/tests/regressiontests/forms/tests.py index 1f865513c8..3d71bffbfd 100644 --- a/tests/regressiontests/forms/tests.py +++ b/tests/regressiontests/forms/tests.py @@ -3795,14 +3795,6 @@ u'1' >>> smart_unicode('foo') u'foo' -# flatatt tests ->>> from django.newforms.util import flatatt ->>> flatatt({'id': "header"}) -u' id="header"' ->>> flatatt({'class': "news", 'title': "Read this"}) -u' class="news" title="Read this"' ->>> flatatt({}) -u'' #################################### # Test accessing errors in clean() # diff --git a/tests/regressiontests/forms/util.py b/tests/regressiontests/forms/util.py index b0b50e3be9..1a02b7e55b 100644 --- a/tests/regressiontests/forms/util.py +++ b/tests/regressiontests/forms/util.py @@ -7,6 +7,18 @@ util_tests = r""" >>> from django.newforms.util import * >>> from django.utils.translation import ugettext_lazy +########### +# flatatt # +########### + +>>> from django.newforms.util import flatatt +>>> flatatt({'id': "header"}) +u' id="header"' +>>> flatatt({'class': "news", 'title': "Read this"}) +u' class="news" title="Read this"' +>>> flatatt({}) +u'' + ################### # ValidationError # ################### |
