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

  • Committer: Jelmer Vernooij
  • Date: 2020-01-15 23:33:01 UTC
  • mto: This revision was merged to the branch mainline in revision 7446.
  • Revision ID: jelmer@jelmer.uk-20200115233301-08g9ug35zfpo1sas
Add test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import os
18
18
 
19
19
from ..propose import (
 
20
    determine_title,
20
21
    get_proposal_by_url,
21
22
    get_hoster,
22
23
    Hoster,
106
107
 
107
108
        url = urlutils.local_path_to_url(os.path.join(self.test_dir, 'hosted', 'proposal'))
108
109
        self.assertIsInstance(get_proposal_by_url(url), MergeProposal)
 
110
 
 
111
 
 
112
class DetermineTitleTests(tests.TestCase):
 
113
 
 
114
    def test_determine_title(self):
 
115
        self.assertEqual('Make some change', determine_title("""\
 
116
Make some change.
 
117
 
 
118
And here are some more details.
 
119
"""))