~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-12-22 00:03:14 UTC
  • mfrom: (3140.1.7 find-branches)
  • Revision ID: pqm@pqm.ubuntu.com-20071222000314-vq5b7m2jkaxvofm9
Add find_branch, find_trees, find_bzrdirs methods (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
        file_conflict = conflicts.TextConflict('file', None, 'hello-id')
377
377
        tree.set_conflicts(conflicts.ConflictList([file_conflict]))
378
378
        tree.auto_resolve()
 
379
 
 
380
 
 
381
class TestFindTrees(TestCaseWithTransport):
 
382
 
 
383
    def test_find_trees(self):
 
384
        self.make_branch_and_tree('foo')
 
385
        self.make_branch_and_tree('foo/bar')
 
386
        # Sticking a tree inside a control dir is heinous, so let's skip it
 
387
        self.make_branch_and_tree('foo/.bzr/baz')
 
388
        self.make_branch('qux')
 
389
        trees = workingtree.WorkingTree.find_trees('.')
 
390
        self.assertEqual(2, len(list(trees)))