def testLangCodesToMask(self):
        langInstance = Languages()

        codes = ["eng", "nld", "ita"]
        # eng is 0x40
        # nld is 0x80000
        # ita is 0x2000
        mask = langInstance.langCodesToMask(codes)
        self.assertEquals((0x40 | 0x80000 | 0x2000), mask)
Esempio n. 2
0
    def testLangCodesToMask(self):
        langInstance = Languages()

        codes = ["eng", "nld", "ita"]
        # eng is 0x40
        # nld is 0x80000
        # ita is 0x2000
        mask = langInstance.langCodesToMask(codes)
        self.assertEquals((0x40 | 0x80000 | 0x2000), mask)
 def testLangCodesToMaskEmpty(self):
     langInstance = Languages()
     codes = []
     mask = langInstance.langCodesToMask(codes)
     self.assertEquals(0, mask)
Esempio n. 4
0
 def testLangCodesToMaskEmpty(self):
     langInstance = Languages()
     codes = []
     mask = langInstance.langCodesToMask(codes)
     self.assertEquals(0,mask)