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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 10:50:21 UTC
  • mfrom: (7164 work)
  • mto: This revision was merged to the branch mainline in revision 7165.
  • Revision ID: jelmer@jelmer.uk-20181116105021-xl419v2rh4aus1au
Merge trunk.

Show diffs side-by-side

added added

removed removed

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