#NEWLINE# def test_mixed_types_to_file( self ) : #NEWLINE# #INDENT# ' Test that mixed geometry types raise error when writing to file ' #NEWLINE# tempfilename = os . path . join ( self . tempdir , 'test.shp' ) #NEWLINE# s = GeoDataFrame ( { #NEWLINE# #INDENT# 'geometry' : [ Point ( 0 , 0 ) , Polygon ( [ ( 0 , 0 ) , ( 1 , 0 ) , ( 1 , 1 ) ] ) ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# s . to_file ( tempfilename )