/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: Robert Collins
  • Date: 2006-06-10 19:32:47 UTC
  • mto: (1767.2.2 integration)
  • mto: This revision was merged to the branch mainline in revision 1769.
  • Revision ID: robertc@robertcollins.net-20060610193247-be43e4f7c71fb77f
Teach walkdirs to walk a subdir of a tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
        self.assertTrue(found_bzrdir)
260
260
        self.assertEqual(expected_dirblocks,
261
261
            [[line[0:3] for line in block] for block in result])
 
262
        # you can search a subdir only, with a supplied prefix.
 
263
        result = []
 
264
        for dirblock in osutils.walkdirs('1dir', '1dir'):
 
265
            result.append(dirblock)
 
266
        self.assertEqual(expected_dirblocks[1:],
 
267
            [[line[0:3] for line in block] for block in result])
 
268