def METHOD_NAME(self):
    """
    Agency shouldnt be created as partner setted as 'agency'
    and its sale channel as 'direct'.
    """
    # ARRANGE
    PmsSaleChannel = self.env["pms.sale.channel"]
    saleChannel1 = PmsSaleChannel.create({"channel_type": "direct"})
    # ACT & ASSERT
    with self.assertRaises(
        ValidationError, msg="An agency should be an indirect channel."
    ):
        self.env["res.partner"].create(
            {
                "name": "example",
                "is_agency": True,
                "sale_channel_id": saleChannel1.id,
            }
        )