~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/tests/test_shared_potemplate.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-11 09:06:29 UTC
  • mfrom: (14120.2.8 bug-869089)
  • Revision ID: launchpad@pqm.canonical.com-20111011090629-2t5okp0ri4ow6yr0
[r=benji][bug=677532, 869089][incr] Good riddance to official_rosetta.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        self.assertEquals(self.devel_potemplate.hasPluralMessage(), False)
112
112
 
113
113
        # Let's add a POTMsgSet with plural forms.
114
 
        plural_potmsgset = self.factory.makePOTMsgSet(self.devel_potemplate,
115
 
                                                      singular="singular",
116
 
                                                      plural="plural",
117
 
                                                      sequence=4)
 
114
        self.factory.makePOTMsgSet(self.devel_potemplate,
 
115
                                   singular="singular",
 
116
                                   plural="plural",
 
117
                                   sequence=4)
118
118
 
119
119
        # Now, template contains a plural form message.
120
120
        self.assertEquals(self.devel_potemplate.hasPluralMessage(), True)
232
232
 
233
233
    def _makeAndFind(self, names, name_pattern=None):
234
234
        product = self.factory.makeProduct()
235
 
        product.official_rosetta = True
236
235
        trunk = product.getSeries('trunk')
237
236
        for name in names:
238
237
            self.factory.makePOTemplate(productseries=trunk, name=name)