Exemple #1
0
 def test_not_none_failed(self):
     soft = SoftAssert()
     soft.is_not_none(None)
     with self.assertRaises(AssertionError):
         soft.assert_all()
Exemple #2
0
 def test_not_none_ok(self):
     soft = SoftAssert()
     soft.is_not_none(1)
     soft.assert_all()