Exemplo n.º 1
0
 def test_negative_decimal(self):
     self.assertEqual(Decimal('9.99'), mathfilters.absolute(Decimal('-9.99')))
Exemplo n.º 2
0
 def test_positive_float(self):
     self.assertEqual(2.3, mathfilters.absolute('2.3'))
Exemplo n.º 3
0
 def test_negative_float(self):
     self.assertEqual(2.3, mathfilters.absolute('-2.3'))
Exemplo n.º 4
0
 def test_positive(self):
     self.assertEqual(21, mathfilters.absolute('21'))
Exemplo n.º 5
0
 def test_negative(self):
     self.assertEqual(21, mathfilters.absolute('-21'))
Exemplo n.º 6
0
 def test_negative_decimal(self):
     self.assertEqual(Decimal('9.99'),
                      mathfilters.absolute(Decimal('-9.99')))
Exemplo n.º 7
0
 def test_negative_float(self):
     self.assertEqual(2.3, mathfilters.absolute('-2.3'))
Exemplo n.º 8
0
 def test_positive_float(self):
     self.assertEqual(2.3, mathfilters.absolute('2.3'))
Exemplo n.º 9
0
 def test_negative(self):
     self.assertEqual(21, mathfilters.absolute('-21'))
Exemplo n.º 10
0
 def test_positive(self):
     self.assertEqual(21, mathfilters.absolute('21'))