~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2011-10-06 07:43:13 UTC
  • mfrom: (6015.33.8 2.4)
  • mto: This revision was merged to the branch mainline in revision 6192.
  • Revision ID: v.ladeuil+lp@free.fr-20111006074313-w3f2t8lgzy04pjjb
Merge 2.4 into trunk resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
818
818
        self.assertEqual(None, osutils.safe_file_id(None))
819
819
 
820
820
 
 
821
class TestPosixFuncs(tests.TestCase):
 
822
    """Test that the posix version of normpath returns an appropriate path
 
823
       when used with 2 leading slashes."""
 
824
 
 
825
    def test_normpath(self):
 
826
        self.assertEqual('/etc/shadow', osutils._posix_normpath('/etc/shadow'))
 
827
        self.assertEqual('/etc/shadow', osutils._posix_normpath('//etc/shadow'))
 
828
        self.assertEqual('/etc/shadow', osutils._posix_normpath('///etc/shadow'))
 
829
 
 
830
 
821
831
class TestWin32Funcs(tests.TestCase):
822
832
    """Test that _win32 versions of os utilities return appropriate paths."""
823
833