Example #1
0
 def returns_false_for_unwrapped_types():
     assert is_wrapping_type(ObjectType) is False
     with raises(TypeError):
         assert_wrapping_type(ObjectType)
Example #2
0
 def returns_true_for_list_and_non_null_types():
     assert is_wrapping_type(GraphQLList(ObjectType)) is True
     assert_wrapping_type(GraphQLList(ObjectType))
     assert is_wrapping_type(GraphQLNonNull(ObjectType)) is True
     assert_wrapping_type(GraphQLNonNull(ObjectType))