def METHOD_NAME(self):
    agent = self.session.query(RegistrarMain).filter_by(agent_id=agent_id).first()
    assert agent
    self.assertEqual(
        agent.ek_tpm,
        """-----BEGIN PUBLIC KEY-----