~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:50:44 UTC
  • mfrom: (2881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004055044-pb88kgkfayawro8n
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
477
477
        #       osutils.getcwd() renormalize the path.
478
478
        self.assertEndsWith(osutils._win32_getcwd(), u'mu-\xb5')
479
479
 
 
480
    def test_minimum_path_selection(self):
 
481
        self.assertEqual(set(),
 
482
            osutils.minimum_path_selection([]))
 
483
        self.assertEqual(set(['a', 'b']),
 
484
            osutils.minimum_path_selection(['a', 'b']))
 
485
        self.assertEqual(set(['a/', 'b']),
 
486
            osutils.minimum_path_selection(['a/', 'b']))
 
487
        self.assertEqual(set(['a/', 'b']),
 
488
            osutils.minimum_path_selection(['a/c', 'a/', 'b']))
 
489
 
480
490
    def test_mkdtemp(self):
481
491
        tmpdir = osutils._win32_mkdtemp(dir='.')
482
492
        self.assertFalse('\\' in tmpdir)