~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ancestry.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:
47
47
 
48
48
    def test_none_is_always_an_ancestor(self):
49
49
        tree = self.make_branch_and_memory_tree('.')
 
50
        tree.lock_write()
 
51
        tree.add('')
50
52
        # note this is tested before any commits are done.
51
53
        self.assertTrue(is_ancestor(None, None, tree.branch))
52
54
        rev_id = tree.commit('one')
 
55
        tree.unlock()
53
56
        self.assertTrue(is_ancestor(None, None, tree.branch))
54
57
        self.assertTrue(is_ancestor(rev_id, None, tree.branch))
55
58
        self.assertFalse(is_ancestor(None, rev_id, tree.branch))