def test_lookupDuplicateByValue(self):
        class TIMEX(Flags):
            # (timex.mode)
            ADJ_OFFSET = FlagConstant(0x0001) # time offset

            #  xntp 3.4 compatibility names
            MOD_OFFSET = FlagConstant(0x0001)

        self.assertIdentical(TIMEX.lookupByValue(0x0001), TIMEX.ADJ_OFFSET)
If more than one constant is associated with a particular value,
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_constants.py/FlagsTests.test_lookupDuplicateByValue