~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_tree.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-01 17:48:30 UTC
  • mto: This revision was merged to the branch mainline in revision 3600.
  • Revision ID: john@arbash-meinel.com-20080801174830-xyg2tor1j4zjklpj
One code path was using a tuple, another a plain path
we need to support *both*. Relatively simple fix after that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
409
409
        self.assertCmpByDirblock(1, u'a-a/a/a', u'a/a/a')
410
410
        self.assertCmpByDirblock(1, u'a=a/a/a', u'a/a/a')
411
411
 
412
 
    def assertPathKey(self, expected, path):
413
 
        self.assertEqual(expected, _mod_tree.MultiWalker._path_key(path))
 
412
    def assertPathToKey(self, expected, path):
 
413
        self.assertEqual(expected, _mod_tree.MultiWalker._path_to_key(path))
414
414
 
415
 
    def test__path_key(self):
416
 
        self.assertPathKey(([u''], u''), u'')
417
 
        self.assertPathKey(([u''], u'a'), u'a')
418
 
        self.assertPathKey(([u'a'], u'b'), u'a/b')
419
 
        self.assertPathKey(([u'a', u'b'], u'c'), u'a/b/c')
 
415
    def test__path_to_key(self):
 
416
        self.assertPathToKey(([u''], u''), u'')
 
417
        self.assertPathToKey(([u''], u'a'), u'a')
 
418
        self.assertPathToKey(([u'a'], u'b'), u'a/b')
 
419
        self.assertPathToKey(([u'a', u'b'], u'c'), u'a/b/c')