def are_same(self, path_1, path_2):
if path_1 == path_2:<EOL><INDENT>return True<EOL><DEDENT>repo_1 = self.get_repository(path_1)<EOL>repo_2 = self.get_repository(path_2)<EOL>return (repo_1.uid == repo_2.uid)<EOL>
Test that `path_1` and `path_2` refer to the same repository.

        This is more reliable than testing that the strings match, since slightly
        different strings might refer to the same repository (consider small
        differences in a filesystem path for example, eg '//svr/foo', '/svr/foo').

        Returns:
            True if the paths refer to the same repository, False otherwise.