diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-31 00:13:29 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-31 00:13:29 +0000 |
| commit | 63651e8a81335466d21f99e9757bedfa415c3aec (patch) | |
| tree | 59e0b1e0f2ce42f4724f1f38b66349b0b5a1c5e4 /tests | |
| parent | e744018edc77f2dec5f23461158194c273490050 (diff) | |
| parent | fb55717a09fb7f92c76d1af23b2717b7a0610d03 (diff) | |
i18n: merged to [1025] from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@1027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/othertests/defaultfilters.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/othertests/defaultfilters.py b/tests/othertests/defaultfilters.py new file mode 100644 index 0000000000..d440e25dd5 --- /dev/null +++ b/tests/othertests/defaultfilters.py @@ -0,0 +1,20 @@ +""" +>>> floatformat(7.7, None) +'7.7' +>>> floatformat(7.0, None) +'7' +>>> floatformat(0.7, None) +'0.7' +>>> floatformat(0.07, None) +'0.1' +>>> floatformat(0.007, None) +'0.0' +>>> floatformat(0.0, None) +'0' +""" + +from django.core.template.defaultfilters import * + +if __name__ == '__main__': + import doctest + doctest.testmod() |
