Django

Code

Changeset 6151

Show
Ignore:
Timestamp:
09/13/07 21:05:45 (1 year ago)
Author:
gwilson
Message:

Moved flatatt function tests to the util test module.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/forms/tests.py

    r6150 r6151  
    37963796u'foo' 
    37973797 
    3798 # flatatt tests 
    3799 >>> from django.newforms.util import flatatt 
    3800 >>> flatatt({'id': "header"}) 
    3801 u' id="header"' 
    3802 >>> flatatt({'class': "news", 'title': "Read this"}) 
    3803 u' class="news" title="Read this"' 
    3804 >>> flatatt({}) 
    3805 u'' 
    38063798 
    38073799#################################### 
  • django/trunk/tests/regressiontests/forms/util.py

    r6150 r6151  
    77>>> from django.newforms.util import * 
    88>>> from django.utils.translation import ugettext_lazy 
     9 
     10########### 
     11# flatatt # 
     12########### 
     13 
     14>>> from django.newforms.util import flatatt 
     15>>> flatatt({'id': "header"}) 
     16u' id="header"' 
     17>>> flatatt({'class': "news", 'title': "Read this"}) 
     18u' class="news" title="Read this"' 
     19>>> flatatt({}) 
     20u'' 
    921 
    1022###################