def METHOD_NAME(mocker, bq_client_mock):
    bq_client_mock.__class__ = Client
    mocker.patch.object(bq_client_mock, "get_table", side_effect=Table)
    query = Query(bq_client_mock)
    result = query.table_exist(TableReference(DatasetReference("test_unittest","test_unittest"),"test_unittest"))
    assert result[0] == True and isinstance(result[1], Table)