~ursinha/lp-qa-tools/bzr-tarmacland

« back to all changes in this revision

Viewing changes to test_pqm_submit.py

  • Committer: John Arbash Meinel
  • Date: 2007-11-14 15:47:10 UTC
  • Revision ID: john@arbash-meinel.com-20071114154710-q03csgcsiwl8yq4w
Now that we are using submit_branch instead of pqm_branch,
we need to make sure to use the public_location of the submit_branch.
Merge Directives already do this, so that you can use a local mirror of
a branch to generate your delta. However, we need to make sure that we
do the same when sending since we are re-using the same config option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
        self.assertEqual('Commit m\xc3\xa5ss\xc2\xb5ge',
183
183
                         message.get('Subject'))
184
184
 
 
185
    def test_submit_branch_public_location(self):
 
186
        source_branch = self.make_branch('source')
 
187
        public_branch = self.make_branch('public')
 
188
        submit_branch = self.make_branch('submit')
 
189
        submit_public_branch = self.make_branch('submit_public')
 
190
        submit_branch.set_public_branch(submit_public_branch.base)
 
191
        source_branch.set_submit_branch(submit_branch.base)
 
192
        submission = pqm_submit.PQMSubmission(
 
193
            source_branch=source_branch,
 
194
            public_location='public',
 
195
            message=u'Commit m\xe5ss\xb5ge')
 
196
        self.assertEqual(submit_public_branch.base, submission.submit_location)
 
197
 
185
198
 
186
199
class PQMSubmissionLocationsTests(TestCaseWithTransport):
187
200