'AssertEqual replacement for CourseLocator'

def _compare_ignore_version(self, loc1, loc2, msg=None):

    if (loc1.for_branch(None) != loc2.for_branch(None)):
        self.fail(self._formatMessage(msg, u'{}    !=    {}'.format(unicode(loc1), unicode(loc2))))
