def test_is_zero_failed(self): soft = SoftAssert() soft.is_zero(1) with self.assertRaises(AssertionError): soft.assert_all()
def test_is_zero_ok(self): soft = SoftAssert() soft.is_zero(0) soft.assert_all()
def test_is_zero_failed(self): soft = SoftAssert() soft.is_zero(1) with self.assertRaises(AssertionError): soft.assert_all()
def test_is_zero_ok(self): soft = SoftAssert() soft.is_zero(0) soft.assert_all()