예제 #1
0
 def test_is_negative_ok_float(self):
     soft = SoftAssert()
     soft.is_negative(-3.14)
     soft.assert_all()
예제 #2
0
 def test_is_negative_failed_float(self):
     soft = SoftAssert()
     soft.is_negative(1.2)
     with self.assertRaises(AssertionError):
         soft.assert_all()
예제 #3
0
 def test_is_negative_ok_int(self):
     soft = SoftAssert()
     soft.is_negative(-1)
     soft.assert_all()