/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_rename_map.py

  • Committer: Aaron Bentley
  • Date: 2009-03-13 06:32:28 UTC
  • mto: This revision was merged to the branch mainline in revision 4196.
  • Revision ID: aaron@aaronbentley.com-20090313063228-d4zoyohklfyz1ia2
Get a dict of required parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        self.build_tree_contents([('tree/c', ''.join(self.b_lines))])
75
75
        self.assertEqual({'a': 'aid'},
76
76
                         rn.file_match(tree, ['a', 'b', 'c']))
 
77
 
 
78
    def test_match_directories(self):
 
79
        rn = RenameMap()
 
80
        tree = self.make_branch_and_tree('tree')
 
81
        required_parents = rn.get_required_parents({
 
82
            'path1': 'a',
 
83
            'path2/tr': 'b',
 
84
        }, tree)
 
85
        self.assertEqual({'path2': ['path2/tr']}, required_parents)