docstr: Tests that geometry read as binary is accepted.
docstr_tok: ["Tests","that","geometry","read","as","binary","is","accepted","."]
code: def test_read_postgis_binary(self, connection_spatialite, df_nybb):
      """Tests that geometry read as binary is accepted."""
      con = connection_spatialite
      geom_col = df_nybb.geometry.name
      create_spatialite(con, df_nybb)
      sql = (
          "SELECT ogc_fid, borocode, boroname, shape_leng, shape_area, "
          'ST_AsBinary("{0}") AS "{0}" FROM nybb'.format(geom_col)
      )
      df = read_postgis(sql, con, geom_col=geom_col)
      validate_boro_df(df)
  
imports: import os
  import warnings
  import pandas
  import geopandas
  from geopandas import GeoDataFrame, read_file, read_postgis
  import geopandas._compat
  from geopandas.io.sql import _get_conn, _write_postgis
  from geopandas.tests.util import create_postgis, create_spatialite, validate_boro_df
  import pytest
label_desc: Use image node_id 10 for calling the TestIO obj's underlying member method code with example usage: obj.test_read_postgis_binary(connection_spatialite, df_nybb) without return types