def METHOD_NAME(self):
    """We force the first element of `get_all_transactions` to be a transaction
    that has tx1 as parent. So, tx1 would raise RewardLocked exception if
    topological sort hasn't handled it.
    """
    self.tx_storage.set_first_tx(self.tx1)
    # check that get_all_transactions is working properly
    seen = set()
    for tx in self.tx_storage.get_all_transactions():
        if tx.hash == self.tx1.hash:
            self.assertNotIn(self.block_list[-1].hash, seen)
        seen.add(tx.hash)
    self.assertEqual(seen, self.all_hashes)
    # a new manager must be successfully initialized
    self.tx_storage.reset_indexes()
    self.create_peer('testnet', tx_storage=self.tx_storage)