/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2011-10-06 15:18:26 UTC
  • mfrom: (6200 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6201.
  • Revision ID: v.ladeuil+lp@free.fr-20111006151826-0ce4nmxwivs6p4x9
Merge 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