~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:09:14 UTC
  • mfrom: (6191.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20111006080914-364iz1580zxvpxtm
(vila) Merge 2.4 into trunk resolving conflicts (Vincent Ladeuil)

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