def METHOD_NAME(make_stubber, error_code):
    kinesis_client = boto3.client('kinesis')
    kinesis_stubber = make_stubber(kinesis_client)
    stream = KinesisStream(kinesis_client)
    stream.name = 'test-stream'
    kinesis_stubber.stub_delete_stream(stream.name, error_code=error_code)
    if error_code is None:
        stream.delete()
        assert stream.name is None
    else:
        with pytest.raises(ClientError) as exc_info:
            stream.delete()
        assert exc_info.value.response['Error']['Code'] == error_code