def METHOD_NAME(self):
    from distutils.msvc9compiler import MSVCCompiler
    tempdir = self.mkdtemp()
    manifest = os.path.join(tempdir, 'manifest')
    f = open(manifest, 'w')
    try:
        f.write(_MANIFEST_WITH_MULTIPLE_REFERENCES)
    finally:
        f.close()
    compiler = MSVCCompiler()
    compiler._remove_visual_c_ref(manifest)
    # see what we got
    f = open(manifest)
    try:
        # removing trailing spaces
        content = '\n'.join([line.rstrip() for line in f.readlines()])
    finally:
        f.close()
    # makes sure the manifest was properly cleaned
    self.assertEqual(content, _CLEANED_MANIFEST)