import pytest

from graphql import GraphQLString, GraphQLList, GraphQLNonNull

from ..structures import List, NonNull
from ..scalars import String


def test_list():
    list_instance = List(String())
    assert isinstance(list_instance, GraphQLList)
    assert list_instance.of_type == GraphQLString


def test_list_lambda():
    list_instance = List(lambda: String())
    assert isinstance(list_instance, GraphQLList)
    assert list_instance.of_type == GraphQLString


def test_list_list():
    list_instance = List(List(String()))
    assert isinstance(list_instance, List)
    assert isinstance(list_instance.of_type, GraphQLList)
    assert list_instance.of_type.of_type == GraphQLString


def test_nonnull():
    list_instance = NonNull(String())
    assert isinstance(list_instance, GraphQLNonNull)
    assert list_instance.of_type == GraphQLString


def test_nonnull_lambda():
    list_instance = NonNull(lambda: String())
    assert isinstance(list_instance, GraphQLNonNull)
    assert list_instance.of_type == GraphQLString


def test_nonnull_list():
    list_instance = NonNull(List(String()))
    assert isinstance(list_instance, GraphQLNonNull)
    assert isinstance(list_instance.of_type, GraphQLList)
    assert list_instance.of_type.of_type == GraphQLString

@@ -565,16 +565,23 @@
 stance, 
+GraphQL
 List)%0A  

Fix test case