~abompard/mailman/import21

« back to all changes in this revision

Viewing changes to src/mailman/utilities/tests/test_import.py

  • Committer: Aurélien Bompard
  • Date: 2013-10-11 15:37:37 UTC
  • Revision ID: aurelien@bompard.org-20131011153737-p29q43qxhere0pv2
Use the full language code in the configuration hint

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
            self._import()
255
255
        except Import21Error, e:
256
256
            # check the message
257
 
            self.assertTrue("xx_XX" in str(e))
258
 
            self.assertTrue("[language.xx]" in str(e))
 
257
            self.assertTrue("[language.xx_XX]" in str(e))
259
258
        else:
260
259
            self.fail("Import21Error was not raised")
261
260
 
588
587
            import_config_pck(self._mlist, self._pckdict)
589
588
        except Import21Error, e:
590
589
            # check the message
591
 
            self.assertTrue("xx_XX" in str(e))
592
 
            self.assertTrue("[language.xx]" in str(e))
 
590
            self.assertTrue("[language.xx_XX]" in str(e))
593
591
        else:
594
592
            self.fail("Import21Error was not raised")
595
593