/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 breezy/tests/test_memorytree.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        tree = MemoryTree.create_on_branch(branch)
57
57
        with tree.lock_write():
58
58
            tree.add([''])
59
 
            self.assertIsNot(None, tree.path2id(''))
 
59
            self.assertIsNot(None, tree.get_root_id())
60
60
 
61
61
    def test_lock_tree_write(self):
62
62
        """Check we can lock_tree_write and unlock MemoryTrees."""
170
170
                     kinds=['directory', 'file'])
171
171
            tree.unversion(['foo'])
172
172
            self.assertFalse(tree.is_versioned('foo'))
173
 
            self.assertRaises(errors.NoSuchId, tree.id2path, b'foo-id')
 
173
            self.assertFalse(tree.has_id(b'foo-id'))
174
174
 
175
175
    def test_last_revision(self):
176
176
        """There should be a last revision method we can call."""