def METHOD_NAME(self):
    # construct the rdata from text and extract the TKEY
    tkey = dns.rdata.from_text(
        RdataClass.ANY,
        RdataType.TKEY,
        RdtypeAnyTKeyTestCase.tkey_rdata_text_no_other,
        origin=".",
    )
    self.assertEqual(type(tkey), dns.rdtypes.ANY.TKEY.TKEY)
    # go to text and compare
    tkey_out_text = tkey.to_text(relativize=False)
    self.assertEqual(tkey_out_text, RdtypeAnyTKeyTestCase.tkey_rdata_text_no_other)