~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-24 10:27:45 UTC
  • mfrom: (2851.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20070924102745-ohorpye5tifec1q3
Fix #141382 by comparing real paths and various OSX fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
982
982
        self.assertEqual(mode, actual_mode,
983
983
            'mode of %r incorrect (%o != %o)' % (path, mode, actual_mode))
984
984
 
 
985
    def assertIsSameRealPath(self, path1, path2):
 
986
        """Fail if path1 and path2 points to different files"""
 
987
        self.assertEqual(osutils.realpath(path1),
 
988
                         osutils.realpath(path2),
 
989
                         "apparent paths:\na = %s\nb = %s\n," % (path1, path2))
 
990
 
985
991
    def assertIsInstance(self, obj, kls):
986
992
        """Fail if obj is not an instance of kls"""
987
993
        if not isinstance(obj, kls):