~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

  • Committer: Jonathan Lange
  • Date: 2007-04-13 06:56:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2446.
  • Revision ID: jml@canonical.com-20070413065621-hv9tv4ws25remckj
Store all bug fix URLs in a single property.

Show diffs side-by-side

added added

removed removed

Lines of Context:
383
383
        properties = dict(last_rev.properties)
384
384
        del properties['branch-nick']
385
385
 
386
 
        self.assertEqual({'https://launchpad.net/bugs/234': 'fixed'},
 
386
        self.assertEqual({'bugs': 'https://launchpad.net/bugs/234 fixed'},
387
387
                         properties)
388
388
 
389
389
    def test_fixes_multiple_bugs_sets_properties(self):
401
401
        properties = dict(last_rev.properties)
402
402
        del properties['branch-nick']
403
403
 
404
 
        self.assertEqual({'https://launchpad.net/bugs/123': 'fixed',
405
 
                          'https://launchpad.net/bugs/235': 'fixed'},
406
 
                         properties)
 
404
        self.assertEqual(
 
405
            {'bugs': 'https://launchpad.net/bugs/123 fixed,'
 
406
                     'https://launchpad.net/bugs/235 fixed'},
 
407
            properties)
407
408
 
408
409
    def test_fixes_bug_with_alternate_trackers(self):
409
410
        """--fixes can be used on a properly configured branch to mark bug
424
425
        properties = dict(last_rev.properties)
425
426
        del properties['branch-nick']
426
427
 
427
 
        self.assertEqual({'http://twistedmatrix.com/trac/ticket/235': 'fixed',
428
 
                          'https://launchpad.net/bugs/123': 'fixed'},
429
 
                         properties)
 
428
        self.assertEqual(
 
429
            {'bugs': 'https://launchpad.net/bugs/123 fixed,'
 
430
                     'http://twistedmatrix.com/trac/ticket/235 fixed'},
 
431
            properties)
430
432
 
431
433
    def test_fixes_unknown_bug_prefix(self):
432
434
        tree = self.make_branch_and_tree('tree')