~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_memorytree.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-16 01:25:46 UTC
  • mfrom: (2071 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: john@arbash-meinel.com-20061016012546-d01a0740671b4d73
[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())