def testSelectWithLabel(self):
        fingerprint = 'F7440D78FE813C882212C2BF8AC2828190B1E477'

        labelStr = 'foo.example.com@rpl:devel'
        label = versions.Label(labelStr)

        cfg = conarycfg.ConaryConfiguration()
        cfg.configLine("signatureKey None")
        cfg.configLine("signatureKeyMap %s %s" % (labelStr, fingerprint))

        self.assertFalse(signtrove.selectSignatureKey(cfg, labelStr) != fingerprint,
                    "selectSignatureKey mismatched labelStr")

        self.assertFalse(signtrove.selectSignatureKey(cfg, labelStr) != \
                    signtrove.selectSignatureKey(cfg, label),
                    "selectSignatureKey did not accomodate a label object")
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/sigtest.py/SigTest.testSelectWithLabel/original