/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/blackbox/test_commit.py

Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
570
570
        del properties['branch-nick']
571
571
        self.assertFalse('bugs' in properties)
572
572
 
 
573
    def test_bugs_sets_property(self):
 
574
        """commit --bugs=lp:234 sets the lp:234 revprop to 'related'."""
 
575
        tree = self.make_branch_and_tree('tree')
 
576
        self.build_tree(['tree/hello.txt'])
 
577
        tree.add('hello.txt')
 
578
        self.run_bzr('commit -m hello --bugs=lp:234 tree/hello.txt')
 
579
 
 
580
        # Get the revision properties, ignoring the branch-nick property, which
 
581
        # we don't care about for this test.
 
582
        last_rev = tree.branch.repository.get_revision(tree.last_revision())
 
583
        properties = dict(last_rev.properties)
 
584
        del properties[u'branch-nick']
 
585
 
 
586
        self.assertEqual({u'bugs': 'https://launchpad.net/bugs/234 related'},
 
587
                         properties)
 
588
 
573
589
    def test_fixes_bug_sets_property(self):
574
590
        """commit --fixes=lp:234 sets the lp:234 revprop to 'fixed'."""
575
591
        tree = self.make_branch_and_tree('tree')