def test_pass_modify_rounding(self):
"""
By default, the filter will round up any value that is halfway
to the nearest `to_nearest` value, but this behavior can be
customized.
"""
self.assertFilterPasses(
self._filter('0.00000000001', rounding=ROUND_CEILING),
Decimal('1'),
)
评论列表
文章目录