def find_file(self, filename):
<EOL>module_dir = os.path.dirname(sys.modules[self.__module__].__file__)<EOL>full_path = os.path.join(<EOL>module_dir,<EOL>"<STR_LIT>",<EOL>self.current_test,<EOL>self.current_test_case,<EOL>filename,<EOL>)<EOL>if os.path.exists(full_path):<EOL><INDENT>return full_path<EOL><DEDENT>else:<EOL><INDENT>raise IOError("<STR_LIT>".format(full_path))<EOL><DEDENT>
Find the necessary file for the given test case.