def METHOD_NAME(self):
    self.nTime = 0
    self.log.info("Warning! This test requires ~1.3GB of disk space")
    self.log.info("Generating a long chain of blocks...")
    # A blk*.dat file is 128MB
    # Generate 250 light blocks
    self.generate(self.nodes[0], 250)
    # Generate 50MB worth of large blocks in the blk00000.dat file
    self.mine_large_blocks(self.nodes[0], 50)
    # Create a wallet which birth's block is in the blk00000.dat file
    wallet_birthheight_1 = "wallet_birthheight_1"
    assert_equal(self.has_block(1), False)
    self.create_wallet(wallet_birthheight_1, unload=True)
    # Generate enough large blocks to reach pruning disk limit
    # Not pruning yet because we are still below PruneAfterHeight
    self.mine_large_blocks(self.nodes[0], 600)
    self.log.info("- Long chain created")
    # Create a wallet with birth height > wallet_birthheight_1
    wallet_birthheight_2 = "wallet_birthheight_2"
    self.create_wallet(wallet_birthheight_2)
    # Fund wallet to later verify that importwallet correctly accounts for balances
    self.generatetoaddress(self.nodes[0], COINBASE_MATURITY + 1, self.nodes[0].getnewaddress(), sync_fun=self.no_op)
    # We've reached pruning storage & height limit but
    # pruning doesn't run until another chunk (blk*.dat file) is allocated.
    # That's why we are generating another 5 large blocks
    self.mine_large_blocks(self.nodes[0], 5)
    # blk00000.dat file is now pruned from node1
    assert_equal(self.has_block(0), False)
    self.test_wallet_import_pruned(wallet_birthheight_2)
    self.test_wallet_import_pruned_with_missing_blocks(wallet_birthheight_1)