async def METHOD_NAME(self, client):
    try:
        await client.validation_of_method_parameters("!@#$", 100)
    except ValidationError as err:
        assert err.rule ==  "pattern"
        assert err.target ==  "resource_group_name"