def METHOD_NAME(self):
    invalid = os.path.join("bin", "file", "does", "not", "exist")
    for path in self.ROOTS:
        newpath = os.path.join(path, invalid)
        dirlist = DirectoryTree(newpath, folders=self.ROOTS)
        selected = dirlist.get_selected_paths()
        dirlist.destroy()
        # select the last valid parent directory
        self.assertEqual(len(selected), 1)
        self.assertTrue(selected[0].startswith(path))