def test_is_none_failed(self): soft = SoftAssert() soft.is_none(1) with self.assertRaises(AssertionError): soft.assert_all()
def test_is_none_ok(self): soft = SoftAssert() soft.is_none(None) soft.assert_all()