def METHOD_NAME(self):
    """ Test transforming a directory of plist files. """
    analyzer_result = os.path.join(self.test_files, 'out')
    self.analyzer_result.transform(
        [analyzer_result], self.cc_result_dir, plist.EXTENSION,
        file_name="{source_file}_{analyzer}")
    plist_file = os.path.join(self.cc_result_dir,
                              'divide_zero.cpp_cppcheck.plist')
    with open(plist_file, mode='rb') as pfile:
        res = plistlib.load(pfile)
        # Use relative path for this test.
        res['files'][0] = 'files/divide_zero.cpp'
        self.assertTrue(res['metadata']['generated_by']['version'])
        res['metadata']['generated_by']['version'] = "x.y.z"
    plist_file = os.path.join(self.test_files,
                              'divide_zero.expected.plist')
    with open(plist_file, mode='rb') as pfile:
        exp = plistlib.load(pfile)
    self.assertEqual(res, exp)