def METHOD_NAME(self):
    self.log.info("Test that transactions removed from mempool are removed from unbroadcast set")
    node = self.nodes[0]
    # since the node doesn't have any connections, it will not receive
    # any GETDATAs & thus the transaction will remain in the unbroadcast set.
    txhsh = self.wallet.send_self_transfer(from_node=node)["txid"]
    # check transaction was removed from unbroadcast set due to presence in
    # a block
    removal_reason = "Removed {} from set of unbroadcast txns before confirmation that txn was sent out".format(txhsh)
    with node.assert_debug_log([removal_reason]):
        self.generate(node, 1, sync_fun=self.no_op)