/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/plugins/po_merge/tests/test_po_merge.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from breezy.plugins import po_merge
31
31
 
 
32
 
32
33
class BlackboxTestPoMerger(script.TestCaseWithTransportAndScript):
33
34
 
34
35
    _test_needs_features = [features.msgmerge_feature]
101
102
                                     _Adduser['base_pot'])),
102
103
                            ('add', ('po/fr.po', b'po-id', 'file',
103
104
                                     _Adduser['base_po'])),
104
 
            ], revision_id=b'base')
 
105
                            ], revision_id=b'base')
105
106
    # The 'other' branch
106
107
    builder.build_snapshot([b'base'],
107
108
                           [('modify', ('po/adduser.pot',
134
135
        self.assertFileEqual(_Adduser['%(revid)s_pot' % env],
135
136
                             '%(branch_name)s/po/adduser.pot' % env)
136
137
        self.assertFileEqual(_Adduser['%(revid)s_po' % env],
137
 
                             '%(branch_name)s/po/fr.po' % env )
 
138
                             '%(branch_name)s/po/fr.po' % env)
138
139
 
139
140
    def test_base(self):
140
141
        self.assertAdduserBranchContent('base')
151
152
# beginning of the file.
152
153
 
153
154
_Adduser = dict(
154
 
    base_pot = osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
 
155
    base_pot=osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
155
156
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
156
157
# This file is distributed under the same license as the PACKAGE package.
157
158
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
179
180
msgstr ""
180
181
 
181
182
"""),
182
 
    this_pot = osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
 
183
    this_pot=osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
183
184
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
184
185
# This file is distributed under the same license as the PACKAGE package.
185
186
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
214
215
msgstr ""
215
216
 
216
217
"""),
217
 
    other_pot = osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
 
218
    other_pot=osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
218
219
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
219
220
# This file is distributed under the same license as the PACKAGE package.
220
221
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
249
250
msgstr ""
250
251
 
251
252
"""),
252
 
    resolved_pot = osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
 
253
    resolved_pot=osutils.safe_utf8(r"""# SOME DESCRIPTIVE TITLE.
253
254
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
254
255
# This file is distributed under the same license as the PACKAGE package.
255
256
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
284
285
msgstr ""
285
286
 
286
287
"""),
287
 
    base_po = osutils.safe_utf8(r"""# adduser's manpages translation to French
 
288
    base_po=osutils.safe_utf8(r"""# adduser's manpages translation to French
288
289
# Copyright (C) 2004 Software in the Public Interest
289
290
# This file is distributed under the same license as the adduser package
290
291
#
320
321
"Attention ! Le répertoire personnel que vous avez indiqué existe déjà.\n"
321
322
 
322
323
"""),
323
 
    this_po = osutils.safe_utf8(r"""# adduser's manpages translation to French
 
324
    this_po=osutils.safe_utf8(r"""# adduser's manpages translation to French
324
325
# Copyright (C) 2004 Software in the Public Interest
325
326
# This file is distributed under the same license as the adduser package
326
327
#
363
364
"Attention ! Le répertoire personnel que vous avez indiqué existe déjà.\n"
364
365
 
365
366
"""),
366
 
    other_po = osutils.safe_utf8(r"""# adduser's manpages translation to French
 
367
    other_po=osutils.safe_utf8(r"""# adduser's manpages translation to French
367
368
# Copyright (C) 2004 Software in the Public Interest
368
369
# This file is distributed under the same license as the adduser package
369
370
#
406
407
"indiqué (%s) : %s.\n"
407
408
 
408
409
"""),
409
 
    resolved_po = osutils.safe_utf8(r"""# adduser's manpages translation to French
 
410
    resolved_po=osutils.safe_utf8(r"""# adduser's manpages translation to French
410
411
# Copyright (C) 2004 Software in the Public Interest
411
412
# This file is distributed under the same license as the adduser package
412
413
#