~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_memorytree.py

  • Committer: Aaron Bentley
  • Date: 2006-10-15 15:55:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2078.
  • Revision ID: aaron.bentley@utoronto.ca-20061015155532-d64a63ea5046f693
Fix up more memorytree tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
    def test_last_revision(self):
150
150
        """There should be a last revision method we can call."""
151
151
        tree = self.make_branch_and_memory_tree('branch')
 
152
        tree.lock_write()
 
153
        tree.add('')
152
154
        rev_id = tree.commit('first post')
 
155
        tree.unlock()
153
156
        self.assertEqual(rev_id, tree.last_revision())