/breezy/trunk

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

« back to all changes in this revision

Viewing changes to breezy/tests/test_bugtracker.py

Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
329
329
    def test_encoding_one(self):
330
330
        self.assertEqual(
331
331
            'http://example.com/bugs/1 fixed',
332
 
            bugtracker.encode_fixes_bug_urls(['http://example.com/bugs/1']))
 
332
            bugtracker.encode_fixes_bug_urls(
 
333
                [('http://example.com/bugs/1', 'fixed')]))
333
334
 
334
335
    def test_encoding_zero(self):
335
336
        self.assertEqual('', bugtracker.encode_fixes_bug_urls([]))
337
338
    def test_encoding_two(self):
338
339
        self.assertEqual(
339
340
            'http://example.com/bugs/1 fixed\n'
340
 
            'http://example.com/bugs/2 fixed',
 
341
            'http://example.com/bugs/2 related',
341
342
            bugtracker.encode_fixes_bug_urls(
342
 
                ['http://example.com/bugs/1', 'http://example.com/bugs/2']))
 
343
                [('http://example.com/bugs/1', 'fixed'),
 
344
                 ('http://example.com/bugs/2', 'related')]))