def returns_false_for_wrapped_non_abstract_type(): assert is_abstract_type(GraphQLList(ObjectType)) is False with raises(TypeError): assert_abstract_type(GraphQLList(ObjectType))
def returns_false_for_wrapped_abstract_type(): assert is_abstract_type(GraphQLList(InterfaceType)) is False with raises(TypeError): assert_abstract_type(GraphQLList(InterfaceType))
def returns_false_for_non_abstract_type(): assert is_abstract_type(ObjectType) is False with raises(TypeError): assert_abstract_type(ObjectType)
def returns_true_for_interface_and_union_types(): assert is_abstract_type(InterfaceType) is True assert_abstract_type(InterfaceType) assert is_abstract_type(UnionType) is True assert_abstract_type(UnionType)