Exemple #1
0
 def test_is_true_failed(self):
     soft = SoftAssert()
     soft.is_true(0)
     with self.assertRaises(AssertionError):
         soft.assert_all()
Exemple #2
0
 def test_is_true_ok(self):
     soft = SoftAssert()
     soft.is_true(1)
     soft.assert_all()