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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-04 05:08:07 UTC
  • mfrom: (1986.4.8 test_ancestry.py)
  • Revision ID: pqm@pqm.ubuntu.com-20061004050807-10e3417a77ab9943
(Robert Collins, John Meinel) Change test_ancestry to use assertTrue and assertFalse over assertEqual(True,...

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())