~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_memorytree.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        tree.unversion(['foo-id'])
141
141
        self.assertFalse(tree.has_id('foo-id'))
142
142
        tree.unlock()
 
143
 
 
144
    def test_last_revision(self):
 
145
        """There should be a last revision method we can call."""
 
146
        tree = self.make_branch_and_memory_tree('branch')
 
147
        rev_id = tree.commit('first post')
 
148
        self.assertEqual(rev_id, tree.last_revision())