Ticket #11206: 11206-floatformat-r10837.diff

File 11206-floatformat-r10837.diff, 778 bytes (added by Tai Lee, 10 years ago)

Failing test case.

  • tests/regressiontests/defaultfilters/tests.py

     
    569569"""
    570570
    571571from django.template.defaultfilters import *
     572from django.test import TestCase
    572573import datetime
    573574
    574575# Python 2.3 doesn't have sorted()
     
    577578except NameError:
    578579    from django.utils.itercompat import sorted
    579580
     581class DefaultFilterTests(TestCase):
     582        def test_11206(self):
     583                """
     584                Regression test for http://code.djangoproject.com/ticket/11206
     585                """
     586                self.failUnlessEqual(floatformat(0.0, 7), u'0.0000000')
     587
    580588if __name__ == '__main__':
    581589    import doctest
    582590    doctest.testmod()
Back to Top