def METHOD_NAME(self):
    bad_pem = rsa_pem.replace(b"TSS2", b"BORK")
    with self.assertRaises(TypeError) as e:
        TSSPrivKey.from_pem(bad_pem)
    self.assertEqual(str(e.exception), "unsupported PEM type")