def returns_false_for_a_unwrapped_type(): assert is_list_type(ObjectType) is False with raises(TypeError): assert_list_type(ObjectType)
def returns_false_for_a_non_list_wrapped_type(): assert is_list_type(GraphQLNonNull( GraphQLList(ObjectType))) is False with raises(TypeError): assert_list_type(GraphQLNonNull(GraphQLList(ObjectType)))
def returns_true_for_a_list_wrapped_type(): assert is_list_type(GraphQLList(ObjectType)) is True assert_list_type(GraphQLList(ObjectType))