def test_parseResponseCallbackSafety(self):
        d = self.queryFactory.deferred
        # The failure mode is that this callback raises an AlreadyCalled
        # error. We have to add it now so that it gets called synchronously
        # and triggers the race condition.
        d.addCallback(self.queryFactory.clientConnectionLost, self.reason)
        self.queryFactory.parseResponse(self.goodContents)
        return d
Check if the provided filter is valid.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_xmlrpc.py/TestQueryFactoryParseResponse.test_parseResponseCallbackSafety--crossover with--dataset/ETHPy150Open matrix-org/synapse/synapse/api/filtering.py/Filtering.check_valid_filter