def test_list(self): self.assertEqual(format_value([1.1, 2]), '{1.1,2}')
def test_tuple(self): self.assertEqual(format_value((1.1, 2)), '{1.1,2}')
def test_int(self): self.assertEqual(format_value(-13), '-13')
def test_float(self): self.assertEqual(format_value(-1.2), '-1.2')
def test_str(self): self.assertEqual(format_value(" foo bar "), '" foo bar "')
def test_Decimal(self): self.assertEqual(format_value(Decimal('1.2e-1')), '0.12')