(self)
| 165 | self.sep = locale.localeconv()['thousands_sep'] |
| 166 | |
| 167 | def test_grouping(self): |
| 168 | self._test_format_string("%f", 1024, grouping=1, out='1%s024.000000' % self.sep) |
| 169 | self._test_format_string("%f", 102, grouping=1, out='102.000000') |
| 170 | self._test_format_string("%f", -42, grouping=1, out='-42.000000') |
| 171 | self._test_format_string("%+f", -42, grouping=1, out='-42.000000') |
| 172 | |
| 173 | def test_grouping_and_padding(self): |
| 174 | self._test_format_string("%20.f", -42, grouping=1, out='-42'.rjust(20)) |
nothing calls this directly
no test coverage detected