def test_equals_failed(self): soft = SoftAssert() soft.equals(1, 2) with self.assertRaises(AssertionError): soft.assert_all()
def test_equals_ok(self): soft = SoftAssert() soft.equals(1, 1) soft.assert_all()