def testWarnAboutDuplicates(self): offsets = [0x1, 0x2, 0x3] self.assertTrue(cyglog_to_orderfile._WarnAboutDuplicates(offsets)) offsets.append(0x1) self.assertFalse(cyglog_to_orderfile._WarnAboutDuplicates(offsets))