def test_lookupDuplicateByValue(self):
        class TRANSPORT_MESSAGE(Values):
            """
            Message types supported by an SSH transport.
            """
            KEX_DH_GEX_REQUEST_OLD = ValueConstant(30)
            KEXDH_INIT = ValueConstant(30)

        self.assertIdentical(
            TRANSPORT_MESSAGE.lookupByValue(30),
            TRANSPORT_MESSAGE.KEX_DH_GEX_REQUEST_OLD)
.. versionadded:: 2015.8.0
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_constants.py/ValuesTests.test_lookupDuplicateByValue--crossover with--dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/msazure.py/update_affinity_group