def METHOD_NAME(self):
    action = self.test_agreement.partner_id.action_open_agreement()
    self.assertIn(
        self.test_agreement, self.env[action["res_model"]].search(action["domain"])
    )
    self.assertEqual(1, self.test_agreement.partner_id.agreements_count)