~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_memorytree.py

Merge MemoryTree branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        tree.unversion(['foo-id'])
126
126
        self.assertFalse(tree.has_id('foo-id'))
127
127
        tree.unlock()
 
128
 
 
129
    def test_last_revision(self):
 
130
        """There should be a last revision method we can call."""
 
131
        tree = self.make_branch_and_memory_tree('branch')
 
132
        rev_id = tree.commit('first post')
 
133
        self.assertEqual(rev_id, tree.last_revision())