~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-09-27 11:48:50 UTC
  • mto: This revision was merged to the branch mainline in revision 6173.
  • Revision ID: v.ladeuil+lp@free.fr-20110927114850-338r2mns0138klv0
Global options respect their hidden attribute

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
 
 
831
821
class TestWin32Funcs(tests.TestCase):
832
822
    """Test that _win32 versions of os utilities return appropriate paths."""
833
823