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

  • Committer: Jelmer Vernooij
  • Date: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    bugtracker,
22
22
    revision,
23
23
    )
24
 
from breezy.errors import (
25
 
    InvalidBugStatus,
26
 
    InvalidLineInBugsProperty,
27
 
    )
28
24
from breezy.revision import NULL_REVISION
29
25
from breezy.tests import TestCase, TestCaseWithTransport
30
26
from breezy.tests.matchers import MatchesAncestry
244
240
    def test_no_status(self):
245
241
        r = revision.Revision(
246
242
            '1', properties={'bugs': 'http://example.com/bugs/1'})
247
 
        self.assertRaises(InvalidLineInBugsProperty, list, r.iter_bugs())
 
243
        self.assertRaises(bugtracker.InvalidLineInBugsProperty, list,
 
244
                r.iter_bugs())
248
245
 
249
246
    def test_too_much_information(self):
250
247
        r = revision.Revision(
251
248
            '1', properties={'bugs': 'http://example.com/bugs/1 fixed bar'})
252
 
        self.assertRaises(InvalidLineInBugsProperty, list, r.iter_bugs())
 
249
        self.assertRaises(bugtracker.InvalidLineInBugsProperty, list,
 
250
                r.iter_bugs())
253
251
 
254
252
    def test_invalid_status(self):
255
253
        r = revision.Revision(
256
254
            '1', properties={'bugs': 'http://example.com/bugs/1 faxed'})
257
 
        self.assertRaises(InvalidBugStatus, list, r.iter_bugs())
 
255
        self.assertRaises(bugtracker.InvalidBugStatus, list, r.iter_bugs())