~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-07 17:47:41 UTC
  • mfrom: (4325.3.9 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090507174741-gavb04vy1c6s0w9n
(Johan Walles) fix bug #180116 by using a sort() and linear operation
        for osutils.minimum_path_selection()

Show diffs side-by-side

added added

removed removed

Lines of Context:
789
789
    def test_minimum_path_selection(self):
790
790
        self.assertEqual(set(),
791
791
            osutils.minimum_path_selection([]))
 
792
        self.assertEqual(set(['a']),
 
793
            osutils.minimum_path_selection(['a']))
792
794
        self.assertEqual(set(['a', 'b']),
793
795
            osutils.minimum_path_selection(['a', 'b']))
794
796
        self.assertEqual(set(['a/', 'b']),
795
797
            osutils.minimum_path_selection(['a/', 'b']))
796
798
        self.assertEqual(set(['a/', 'b']),
797
799
            osutils.minimum_path_selection(['a/c', 'a/', 'b']))
 
800
        self.assertEqual(set(['a-b', 'a', 'a0b']),
 
801
            osutils.minimum_path_selection(['a-b', 'a/b', 'a0b', 'a']))
798
802
 
799
803
    def test_mkdtemp(self):
800
804
        tmpdir = osutils._win32_mkdtemp(dir='.')