def test_contains_failed(self): soft = SoftAssert() soft.contains(2, [1, 0]) with self.assertRaises(AssertionError): soft.assert_all()
def test_contains_ok(self): soft = SoftAssert() soft.contains(1, [1, 2]) soft.assert_all()
def test_contains_failed(self): soft = SoftAssert() soft.contains(2, [1, 0]) with self.assertRaises(AssertionError): soft.assert_all()
def test_contains_ok(self): soft = SoftAssert() soft.contains(1, [1, 2]) soft.assert_all()