l.t.u.t.t.XpiTestCase(unittest.TestCase) : class documentation

Part of lp.translations.utilities.tests.test_xpi_import View In Hierarchy

XPI file import into Launchpad.
Method setUp Undocumented
Method setUpTranslationImportQueueForTemplate Return an ITranslationImportQueueEntry for testing purposes.
Method setUpTranslationImportQueueForTranslation Return an ITranslationImportQueueEntry for testing purposes.
Method test_TemplateImport Test XPI template file import.
Method test_TwiceTemplateImport Test a template import done twice.
Method test_TranslationImport Test XPI translation file import.
Method test_GetLastTranslator Tests whether we extract last translator information correctly.
Method test_Contexts Test that message context in XPI file is set to chrome path.
Method test_SystemEntityIsIgnored Test handling of SYSTEM entities in DTD files.
Method _assertXpiMessageInvariant Check whether invariant part of all messages are correct.
def setUp(self):
Undocumented
def setUpTranslationImportQueueForTemplate(self, subdir):
Return an ITranslationImportQueueEntry for testing purposes.
Parameterssubdirsubdirectory in firefox-data to get XPI data from.
def setUpTranslationImportQueueForTranslation(self, subdir):
Return an ITranslationImportQueueEntry for testing purposes.
Parameterssubdirsubdirectory in firefox-data to get XPI data from.
def _assertXpiMessageInvariant(self, message):
Check whether invariant part of all messages are correct.
def test_TemplateImport(self):
Test XPI template file import.
def test_TwiceTemplateImport(self):
Test a template import done twice.
def test_TranslationImport(self):
Test XPI translation file import.
def test_GetLastTranslator(self):
Tests whether we extract last translator information correctly.
def test_Contexts(self):
Test that message context in XPI file is set to chrome path.
def test_SystemEntityIsIgnored(self):
Test handling of SYSTEM entities in DTD files.
API Documentation for Launchpad, generated by pydoctor at 2019-04-20 00:00:04.