def assert_passes(self, warnings_pass=False):
        assert not self.err.failed(fail_on_warnings=not warnings_pass), \
                ("Test was intended to pass%s, but it did not." %
                     (" with warnings" if warnings_pass else ""))
"
dataset/ETHPy150Open mozilla/app-validator/tests/helper.py/TestCase.assert_passes--crossover with--dataset/ETHPy150Open openstack/swift/swift/common/middleware/keystoneauth.py/KeystoneAuth._authorize_unconfirmed_identity