Permalink
Browse files

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
  • Loading branch information...
gdub committed Sep 14, 2007
1 parent 0b1f4e3 commit 8b0eaba0ee66e2ec6307ae9e34cf8610614d67a6
Showing with 12 additions and 8 deletions.
  1. +0 −8 tests/regressiontests/forms/tests.py
  2. +12 −0 tests/regressiontests/forms/util.py
@@ -3795,14 +3795,6 @@
>>> 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() #
@@ -7,6 +7,18 @@
>>> 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 #
###################

0 comments on commit 8b0eaba

Please sign in to comment.