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

Test that getting an unknown revision fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        rev = repo.get_revision(revid)
68
68
        self.assertIsInstance(rev, revision.Revision)
69
69
 
 
70
    def test_get_revision_unknown(self):
 
71
        tests.run_git('init')
 
72
 
 
73
        repo = Repository.open('.')
 
74
        self.assertRaises(errors.NoSuchRevision, repo.get_revision, "bla")
 
75
 
70
76
    def simple_commit(self):
71
77
        # Create a git repository with some interesting files in a revision.
72
78
        tests.run_git('init')