~zyga/tarmac/git-support

« back to all changes in this revision

Viewing changes to tarmac/plugins/tests/test_commitmessage.py

  • Committer: Tarmac Traffic Controller
  • Author(s): Rodney Dawes
  • Date: 2014-02-20 20:40:35 UTC
  • mfrom: (427.1.1 merge-web-link)
  • Revision ID: tarmac_traffic_controller-20140220204035-4nrox8da9dk7c127
Use proposal.web_link directly instead of a regex.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
                    reviewer=Thing(
27
27
                        display_name="Virginia Voter", name="virginia")),
28
28
                ],
29
 
            self_link=u"http://api.launchpad.net/1.0/~rockstar/tarmac/tarmac/+merge/1")
 
29
            self_link=u"http://api.launchpad.net/1.0/~rockstar/tarmac/tarmac/+merge/1",
 
30
            web_link='https://code.launchpad.net/~rockstar/tarmac/tarmac/+merge/1',
 
31
        )
30
32
        self.info = CommitMessageTemplateInfo(self.proposal)
31
33
 
32
34
    def test_author(self):
48
50
 
49
51
    def test_review_url(self):
50
52
        self.assertEqual(
51
 
            u"http://code.launchpad.net/~rockstar/tarmac/tarmac/+merge/1",
 
53
            u"https://code.launchpad.net/~rockstar/tarmac/tarmac/+merge/1",
52
54
            self.info.review_url)
53
55
 
54
56
    def test_approved_by_nicks(self):