Example #1
0
 def test_string(self):
     self.assertFalse(checks.amount_is_valid("blablah"))
Example #2
0
 def test_correct_float(self):
     self.assertTrue(checks.amount_is_valid(1.09))
Example #3
0
 def test_negative_amount(self):
     self.assertFalse(checks.amount_is_valid(-1))
Example #4
0
 def test_correct_integer(self):
     self.assertTrue(checks.amount_is_valid(687))