docstr: DB Eng Specs (postgres): Test estimate_statement_cost select star
docstr_tok: ["DB","Eng","Specs","(","postgres",")",":","Test","estimate_statement_cost","select","star"]
code: def test_estimate_statement_cost_select_star(self):
      """
      DB Eng Specs (postgres): Test estimate_statement_cost select star
      """
  
      cursor = mock.Mock()
      cursor.fetchone.return_value = (
          "Seq Scan on birth_names (cost=0.00..1537.91 rows=75691 width=46)",
      )
      sql = "SELECT * FROM birth_names"
      results = PostgresEngineSpec.estimate_statement_cost(sql, cursor)
      self.assertEqual(
          results,
          {
              "Start-up cost": 0.00,
              "Total cost": 1537.91,
          },
      )
  
imports: from textwrap import dedent
  from unittest import mock
  from flask.ctx import AppContext
  from sqlalchemy import column, literal_column
  from sqlalchemy.dialects import postgresql
  from superset.db_engine_specs import load_engine_specs
  from superset.db_engine_specs.postgres import PostgresEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.models.sql_lab import Query
  from superset.utils.database import get_example_database
  from tests.integration_tests.db_engine_specs.base_tests import TestDbEngineSpec
  from tests.integration_tests.fixtures.certificates import ssl_certificate
  from tests.integration_tests.fixtures.database import default_db_extra
label_desc: Use image node_id 12 for calling the TestPostgresDbEngineSpec obj's underlying member method code with example usage: obj.test_estimate_statement_cost_select_star() without return types