def test_send_event_with_filter_reject(self):
        def check_output(result):
            self.assertEqual(self.tr.value(), b"")
        init_outstanding_ack = self.proto.outstanding_ack
        def check_ack_increment(result):
            self.assertEqual(self.proto.outstanding_ack - init_outstanding_ack, 0)
        self.tr.clear()
        self.proto.filters.append(
            etree.XPath("/*[local-name()=\"VOEvent\" and @role!=\"test\"]")
        ) # Will reject dummy event with role "test"
        d = self.proto.send_event(DummyEvent())
        d.addCallback(check_output)
        d.addCallback(check_ack_increment)
        return d
dataset/ETHPy150Open jdswinbank/Comet/comet/protocol/test/test_voeventbroadcaster.py/VOEventBroadcasterTestCase.test_send_event_with_filter_reject/original