#NEWLINE# def mountroot_for_test( test_case ) : #NEWLINE# #INDENT# '\n    Create a mountpoint root directory and unmount any filesystems with mount\n    points beneath that directory when the test exits.\n\n    :param TestCase test_case: The ``TestCase`` which is being run.\n    :returns: A ``FilePath`` for the newly created mount root.\n    ' #NEWLINE# mountroot = FilePath ( test_case . mktemp ( ) ) #NEWLINE# mountroot . makedirs ( ) #NEWLINE# test_case . addCleanup ( umount_all , mountroot ) #NEWLINE# return mountroot