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

Rename GitModel.ancestry to .get_revision_graph.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        themodel = model.GitModel('.git')
35
35
        self.assertRaises(errors.GitCommandError, themodel.get_head)
36
36
 
37
 
    def test_ancestors(self):
 
37
    def test_get_revision_graph(self):
38
38
        tests.run_git('init')
39
39
        builder = tests.GitBranchBuilder()
40
40
        file_handle = builder.set_file('a', 'text for a\n', False)
68
68
 
69
69
        themodel = model.GitModel('.git')
70
70
        self.assertEqual(revisions[0], themodel.get_head())
71
 
        self.assertEqual(graph, themodel.ancestry([revisions[0]]))
 
71
        self.assertEqual(graph, themodel.get_revision_graph([revisions[0]]))
72
72
 
73
73
    def test_get_inventory(self):
74
74
        # Create a git repository with some interesting files in a revision.