def METHOD_NAME(self):
    """
    Test the order in which find_name() searches directories.
    """
    locator = Locator()
    dir1 = DATA_DIR
    dir2 = LOCATOR_DATA_DIR
    self.assertTrue(locator.find_name(search_dirs=[dir1], template_name='duplicate'))
    self.assertTrue(locator.find_name(search_dirs=[dir2], template_name='duplicate'))
    path = locator.find_name(search_dirs=[dir2, dir1], template_name='duplicate')
    dirpath = os.path.dirname(path)
    dirname = os.path.split(dirpath)[-1]
    self.assertEqual(dirname, 'locator')