def METHOD_NAME(self):
    """
    Property not allowed for the user
    Check a user cannot have an active property
    that is not in the allowed properties
    Company_A ---> Property_A1, Property_A2
    Company_B ---> Property_B1
    """
    # ARRANGE
    Users = self.env["res.users"]
    # ACT & ASSERT
    with self.assertRaises(
        ValidationError,
        msg="Some property is not included in the allowed properties",
    ):
        Users.create(
            {
                "name": "Test User",
                "login": "test_user",
                "company_ids": [(4, self.company_A.id)],
                "company_id": self.company_A.id,
                "pms_property_ids": [(4, self.property_A1.id)],
                "pms_property_id": self.property_B1.id,
            }
        )