/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/test_revision.py

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())