def get_file_contents(self, path, ref=None):
if path not in _repo_state['file_contents']:
raise UnknownObjectException(404, 'not found')
return MockFileContents(_repo_state['file_contents'].get(path))
文章目录