/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_ancestry.py

(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:
45
45
    def test_none_is_always_an_ancestor(self):
46
46
        tree = self.make_branch_and_memory_tree('.')
47
47
        # note this is tested before any commits are done.
48
 
        self.assertEqual(True, is_ancestor(None, None, tree.branch))
 
48
        self.assertTrue(is_ancestor(None, None, tree.branch))
49
49
        rev_id = tree.commit('one')
50
 
        self.assertEqual(True, is_ancestor(None, None, tree.branch))
51
 
        self.assertEqual(True, is_ancestor(rev_id, None, tree.branch))
52
 
        self.assertEqual(False, is_ancestor(None, rev_id, tree.branch))
 
50
        self.assertTrue(is_ancestor(None, None, tree.branch))
 
51
        self.assertTrue(is_ancestor(rev_id, None, tree.branch))
 
52
        self.assertFalse(is_ancestor(None, rev_id, tree.branch))
53
53
 
54
54
 
55
55
# TODO: check that ancestry is updated to include indirectly merged revisions