From 8b0eaba0ee66e2ec6307ae9e34cf8610614d67a6 Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Fri, 14 Sep 2007 02:05:45 +0000 Subject: [PATCH] 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 --- tests/regressiontests/forms/tests.py | 8 -------- 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 # ###################