async def test_rbf_batching__cannot_batch_as_would_need_to_use_ismine_outputs_of_basetx(self):
        """Wallet history contains unconf tx1 that spends all its coins to two ismine outputs,
        one 'recv' address (20k sats) and one 'change' (80k sats).
        The user tries to create tx2, that pays an invoice for 90k sats.
        Even if batch_rbf==True, no batching should be done. Instead, the outputs of tx1 should be used.
        """
        wallet, outgoing_address, to_self_address = self._create_cause_carbon_wallet()
        # to_self_payment tx1
        outputs = [PartialTxOutput.from_address_and_value(to_self_address, 20_000)]
        toself_tx = wallet.make_unsigned_transaction(
            outputs = outputs,
            fee_policy = FixedFeePolicy(200),
            locktime = 2423281,
            rbf = True,
        )
        wallet.sign_transaction(toself_tx, password=None)
        toself_txid = toself_tx.txid()
        wallet.adb.receive_tx_callback(toself_tx, tx_height=TX_HEIGHT_UNCONFIRMED)

        # create outgoing tx2
        outputs = [PartialTxOutput.from_address_and_value(outgoing_address, 90_000)]
        coins = wallet.get_spendable_coins(domain=None)
        self.assertEqual(2, len(coins))

        candidates = wallet.get_candidates_for_batching(outputs, coins)
        self.assertEqual(candidates, [])
        with self.assertRaises(NotEnoughFunds):
            wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee_policy=FixedFeePolicy(1000), base_tx=toself_tx)

        tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee_policy=FixedFeePolicy(1000))
        tx.set_rbf(True)
        tx.locktime = 2423302
        tx.version = 2
        wallet.sign_transaction(tx, password=None)
        self.assertEqual('02000000000102bbef0182c2c746bd28517b6fd27ba9eef9c7fb5982efd27bd612cc5a28615a3a0000000000fdffffffbbef0182c2c746bd28517b6fd27ba9eef9c7fb5982efd27bd612cc5a28615a3a0100000000fdffffff02602200000000000016001413fabce9be995554a722fc4e1c5ae53ebfd58164905f010000000000160014b266f4f1b9f0bc72f090573d049df66d4efa082c0247304402205c50b9ddb1b3ead6214d7d9707c74ba29ff547880d017aae2459db156bf85b9b022041134562fffa3dccf1ac05d9b07da62a8d57dd158d25d22d1965a011325e64aa012102c72b815ba00ccb0b469cc61a0ceb843d974e630cf34abcfac178838f1974f68f02473044022049774c32b0ad046b7acdb4acc38107b6b1be57c0d167643a48cbc045850c86c202205189ed61342fc52a377c2865a879c4c2606de98eebd6bf4d73874d62329668c70121033484c8ed83c359d1c3e569accb04b77988daab9408fc82869051c10d0749ac2006fa2400', str(tx))
Wallet history contains unconf tx1 that spends all its coins to two ismine outputs,
        one 'recv' address (20k sats) and one 'change' (80k sats).
        The user tries to create tx2, that pays an invoice for 90k sats.
        Even if batch_rbf==True, no batching should be done. Instead, the outputs of tx1 should be used.
        
tests/test_wallet_vertical.py