l.t.t.t.SetCurrentTranslationTestMixin : class documentation

Part of lp.translations.tests.test_setcurrenttranslation View In Hierarchy

Known subclasses: lp.translations.tests.test_setcurrenttranslation.TestSetCurrentTranslation_Ubuntu, lp.translations.tests.test_setcurrenttranslation.TestSetCurrentTranslation_Upstream

Tests for POTMsgSet.setCurrentTranslation.

Depending on the setUp implementation available, this can test either from the perspective of translating an Ubuntu template or from the perspective of translating an upstream template.

Method constructTranslationMessage Creates a TranslationMessage directly for pofile context.
Method constructOtherTranslationMessage Creates a TranslationMessage for self.other_pofile context.
Method constructDivergingTranslationMessage Creates a TranslationMessage for self.diverging_pofile context.
Method setCurrentTranslation Helper method to call 'setCurrentTranslation' method.
Method assert_Current_Diverged_Other_DivergencesElsewhere_are Assert that 'important' translations match passed-in values.
Method test_c_None__n_None__o_None Undocumented
Method test_c_None__n_None__o_None__follows Undocumented
Method selectUpstreamTranslation Undocumented
Method test_c_None__n_None__o_shared Undocumented
Method test_c_None__n_None__o_shared__follows Undocumented
Method test_c_None__n_None__o_diverged Undocumented
Method test_c_None__n_None__o_diverged__follows Undocumented
Method test_c_None__n_shared__o_None Undocumented
Method test_c_None__n_shared__o_None__follows Undocumented
Method test_c_None__n_shared__o_shared Undocumented
Method test_c_None__n_shared__o_shared__follows Undocumented
Method test_c_None__n_shared__o_shared__identical Undocumented
Method test_c_None__n_shared__o_shared__identical__follows Undocumented
Method test_c_None__n_shared__o_diverged Undocumented
Method test_c_None__n_shared__o_diverged__follows Undocumented
Method test_c_shared__n_None__o_None Undocumented
Method test_c_shared__n_None__o_None__follows Undocumented
Method test_c_shared__n_None__o_shared Undocumented
Method test_c_shared__n_None__o_shared__follows Undocumented
Method test_c_shared__n_shared__o_None Undocumented
Method test_c_shared__n_shared__o_None__follows Undocumented
Method test_c_shared__n_shared__o_None__identical Undocumented
Method test_c_shared__n_shared__o_None__identical__follows Undocumented
Method test_c_shared__n_shared__o_shared Undocumented
Method test_c_shared__n_shared__o_shared__follows Undocumented
Method test_c_shared__n_shared__o_shared__identical Undocumented
Method test_c_shared__n_shared__o_shared_identical_follows Undocumented
Method test_c_shared__n_shared__o_diverged__identical Undocumented
Method test_c_shared__n_diverged__o_diverged_shared Undocumented
Method test_c_shared__n_diverged__o_diverged__identical Undocumented
Method test_c_diverged__n_None__o_None Undocumented
Method test_c_diverged__n_None__o_None__follows Undocumented
Method test_c_diverged__n_None__o_shared Undocumented
Method test_c_diverged__n_None__o_shared__follows Undocumented
Method test_c_diverged__n_shared__o_None Undocumented
Method test_c_diverged__n_shared__o_None__follows Undocumented
Method test_c_diverged__n_shared__o_None__identical Undocumented
Method test_c_diverged__n_shared__o_None_identical_follows Undocumented
Method test_c_diverged__n_shared__o_shared Undocumented
Method test_c_diverged__n_shared__o_shared__follows Undocumented
Method test_c_diverged__n_shared__o_shared__identical_other Undocumented
Method test_c_diverged__n_shared__o_shared__identical_o__follows Undocumented
Method test_c_diverged__n_shared__o_shared__identical_shared Undocumented
Method test_c_diverged__n_shared__o_shared__identical_shared__follows Undocumented
Method test_c_diverged__n_diverged__o_None Undocumented
Method test_c_diverged__n_diverged__o_None__follows Undocumented
Method test_c_diverged__n_diverged__o_shared Undocumented
Method test_c_diverged__n_diverged__o_shared__follows Undocumented
Method test_c_diverged__n_diverged__o_diverged Undocumented
Method test_c_diverged__n_diverged__o_diverged__follows Undocumented
def constructTranslationMessage(self, pofile=None, potmsgset=None, current=True, other=False, diverged=False, translations=None):
Creates a TranslationMessage directly for pofile context.
def constructOtherTranslationMessage(self, potmsgset=None, current=True, other=False, diverged=False, translations=None):
Creates a TranslationMessage for self.other_pofile context.
def constructDivergingTranslationMessage(self, potmsgset=None, current=True, other=False, diverged=False, translations=None):
Creates a TranslationMessage for self.diverging_pofile context.
def setCurrentTranslation(self, translations, share_with_other_side=False):
Helper method to call 'setCurrentTranslation' method.

It passes all the same parameters we use throughout the tests, including self.potmsgset, self.pofile, self.pofile.owner and origin.

def assert_Current_Diverged_Other_DivergencesElsewhere_are(self, current, diverged, other_shared, divergences_elsewhere):

Assert that 'important' translations match passed-in values.

Takes four parameters:
  • current: represents a current shared translation for this context.

  • diverged: represents a diverged translation for this context.

  • other_shared: represents a shared translation for "other" context.

  • divergences_elsewhere: a list of other divergences in both

    contexts.

def test_c_None__n_None__o_None(self):
Undocumented
def test_c_None__n_None__o_None__follows(self):
Undocumented
def selectUpstreamTranslation(self, tm, tm_other):
Undocumented
def test_c_None__n_None__o_shared(self, follows=False):
Undocumented
def test_c_None__n_None__o_shared__follows(self):
Undocumented
def test_c_None__n_None__o_diverged(self):
Undocumented
def test_c_None__n_None__o_diverged__follows(self):
Undocumented
def test_c_None__n_shared__o_None(self):
Undocumented
def test_c_None__n_shared__o_None__follows(self):
Undocumented
def test_c_None__n_shared__o_shared(self):
Undocumented
def test_c_None__n_shared__o_shared__follows(self):
Undocumented
def test_c_None__n_shared__o_shared__identical(self, follows=False):
Undocumented
def test_c_None__n_shared__o_shared__identical__follows(self):
Undocumented
def test_c_None__n_shared__o_diverged(self):
Undocumented
def test_c_None__n_shared__o_diverged__follows(self):
Undocumented
def test_c_shared__n_None__o_None(self):
Undocumented
def test_c_shared__n_None__o_None__follows(self):
Undocumented
def test_c_shared__n_None__o_shared(self, follows=False):
Undocumented
def test_c_shared__n_None__o_shared__follows(self):
Undocumented
def test_c_shared__n_shared__o_None(self):
Undocumented
def test_c_shared__n_shared__o_None__follows(self):
Undocumented
def test_c_shared__n_shared__o_None__identical(self):
Undocumented
def test_c_shared__n_shared__o_None__identical__follows(self):
Undocumented
def test_c_shared__n_shared__o_shared(self, follows=False):
Undocumented
def test_c_shared__n_shared__o_shared__follows(self):
Undocumented
def test_c_shared__n_shared__o_shared__identical(self, follows=False):
Undocumented
def test_c_shared__n_shared__o_shared_identical_follows(self):
Undocumented
def test_c_shared__n_shared__o_diverged__identical(self):
Undocumented
def test_c_shared__n_diverged__o_diverged_shared(self):
Undocumented
def test_c_shared__n_diverged__o_diverged__identical(self):
Undocumented
def test_c_diverged__n_None__o_None(self, follows=False):
Undocumented
def test_c_diverged__n_None__o_None__follows(self):
Undocumented
def test_c_diverged__n_None__o_shared(self, follows=False):
Undocumented
def test_c_diverged__n_None__o_shared__follows(self):
Undocumented
def test_c_diverged__n_shared__o_None(self, follows=False):
Undocumented
def test_c_diverged__n_shared__o_None__follows(self):
Undocumented
def test_c_diverged__n_shared__o_None__identical(self):
Undocumented
def test_c_diverged__n_shared__o_None_identical_follows(self):
Undocumented
def test_c_diverged__n_shared__o_shared(self, follows=False):
Undocumented
def test_c_diverged__n_shared__o_shared__follows(self):
Undocumented
def test_c_diverged__n_shared__o_shared__identical_other(self, follows=False):
Undocumented
def test_c_diverged__n_shared__o_shared__identical_o__follows(self):
Undocumented
def test_c_diverged__n_shared__o_shared__identical_shared(self, follows=False):
Undocumented
def test_c_diverged__n_shared__o_shared__identical_shared__follows(self):
Undocumented
def test_c_diverged__n_diverged__o_None(self, follows=False):
Undocumented
def test_c_diverged__n_diverged__o_None__follows(self):
Undocumented
def test_c_diverged__n_diverged__o_shared(self, follows=False):
Undocumented
def test_c_diverged__n_diverged__o_shared__follows(self):
Undocumented
def test_c_diverged__n_diverged__o_diverged(self, follows=False):
Undocumented
def test_c_diverged__n_diverged__o_diverged__follows(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2021-01-20 00:00:03.