def METHOD_NAME(self, mocker):
    """Test that AWS credentials are passed successfully into boto3
    client instantiation on creating S3 connection."""
    client_mock = mocker.patch("botocore.session.Session.create_client")
    s3_data_set = ParquetDataSet(filepath=S3_PATH, credentials=AWS_CREDENTIALS)
    pattern = r"Failed while loading data from data set ParquetDataSet\(.+\)"
    with pytest.raises(DatasetError, match=pattern):
        s3_data_set.load().compute()
    assert client_mock.call_count == 1
    args, kwargs = client_mock.call_args_list[0]
    assert args == ("s3",)
    assert kwargs["aws_access_key_id"] == AWS_CREDENTIALS["key"]
    assert kwargs["aws_secret_access_key"] == AWS_CREDENTIALS["secret"]