def METHOD_NAME(
    self, tables_storage_account_name, tables_primary_storage_account_key
):
    url = self.account_url(tables_storage_account_name, "table")
    table_name = self.get_resource_name("mytable")
    invalid_url = url + "/" + table_name
    tsc = TableServiceClient(invalid_url, credential=tables_primary_storage_account_key)
    with pytest.raises(ResourceNotFoundError) as exc:
        tsc.create_table(table_name)
    assert ("table specified does not exist") in str(exc.value)
    assert ("Please check your account URL.") in str(exc.value)
    with pytest.raises(ResourceNotFoundError) as exc:
        tsc.create_table_if_not_exists(table_name)
    assert ("table specified does not exist") in str(exc.value)
    assert ("Please check your account URL.") in str(exc.value)
    with pytest.raises(HttpResponseError) as exc:
        tsc.set_service_properties(analytics_logging=TableAnalyticsLogging(write=True))
    assert ("URI is invalid") in str(exc.value)
    assert ("Please check your account URL.") in str(exc.value)
    with pytest.raises(HttpResponseError) as exc:
        tsc.get_service_properties()
    assert ("URI is invalid") in str(exc.value)
    assert ("Please check your account URL.") in str(exc.value)
    tsc.delete_table(table_name)