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')
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")