def checkObsolete(self, test, obsoleteFile, obsoleteLocal, causeFile):
     fallbackFile = self.getFallbackFile(test, obsoleteFile)
     if plugins.samefile(fallbackFile, causeFile):
         print test.getIndent() + obsoleteLocal, "obsolete due to", os.path.basename(causeFile)
         self.filesToRemove.append(obsoleteFile)
     else:
         print test.getIndent() + obsoleteLocal, "is a version-priority-fixing copy of", os.path.basename(causeFile)
 def getTestsForFile(self, stem, fileName):
     tests = []
     for test in self.currTestSelection:
         defFile = test.getFileName(stem)
         if defFile and plugins.samefile(fileName, defFile):
             tests.append(test)
     return tests