def returns_false_for_an_unwrapped_type(): assert is_non_null_type(ObjectType) is False with raises(TypeError): assert_non_null_type(ObjectType)
def returns_false_for_a_not_non_null_wrapped_type(): assert is_non_null_type(GraphQLList( GraphQLNonNull(ObjectType))) is False with raises(TypeError): assert_non_null_type(GraphQLList(GraphQLNonNull(ObjectType)))
def returns_true_for_a_non_null_wrapped_type(): assert is_non_null_type(GraphQLNonNull(ObjectType)) is True assert_non_null_type(GraphQLNonNull(ObjectType))