Commit 94605b13 authored by Jérome Perrin's avatar Jérome Perrin

test for another edge case of thousand separator in float field.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28778 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb34efb4
......@@ -118,7 +118,8 @@ class TestFloatField(unittest.TestCase):
# test for an edge case bug bug, ",100,000.0" was displayed (with leading coma)
self.field.values['input_style'] = '-1,234.5'
self.assertEquals('100,000.0', self.widget.format_value(self.field, 100000))
self.assertEquals('-100,000.0', self.widget.format_value(self.field, -100000))
def test_format_percent_style(self):
self.field.values['input_style'] = '-12.3%'
self.assertEquals('10.0%', self.widget.format_value(self.field, 0.1))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment