예제 #1
0
 def test_force_decimal(self):
     assert force_decimal('53.55') == Decimal('53.55')
     assert force_decimal(53) == Decimal('53')
     assert force_decimal(Decimal('53.55')) == Decimal('53.55')
예제 #2
0
 def test_force_decimal(self):
     assert force_decimal('53.55') == Decimal('53.55')
     assert force_decimal(53) == Decimal('53')
     assert force_decimal(Decimal('53.55')) == Decimal('53.55')
예제 #3
0
 def test_force_decimal(self):
     assert force_decimal("53.55") == Decimal("53.55")
     assert force_decimal(53) == Decimal("53")
     assert force_decimal(Decimal("53.55")) == Decimal("53.55")