class_docstr: Test basic functionality of AWIPS Tiled writer.
class_docstr_tok: ["Test","basic","functionality","of","AWIPS","Tiled","writer","."]
docstr: Test long 'units' warnings are raised.
docstr_tok: ["Test","long","'units","'","warnings","are","raised","."]
code: def test_units_length_warning(self, tmp_path):
      """Test long 'units' warnings are raised."""
      from satpy.writers.awips_tiled import AWIPSTiledWriter
  
      data = _get_test_data()
      area_def = _get_test_area()
      input_data_arr = _get_test_lcc_data(data, area_def)
      input_data_arr.attrs[
          "units"
      ] = "this is a really long units string"
      w = AWIPSTiledWriter(base_dir=str(tmp_path), compress=True)
      with pytest.warns(
          UserWarning,
          match=r".*this is a really long units string.*too long.*",
      ):
          w.save_dataset(
              input_data_arr, sector_id="TEST", source_name="TESTS"
          )
  
imports: import logging
  import os
  import shutil
  from datetime import datetime, timedelta
  from glob import glob
  import dask
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyproj import CRS
  from satpy.resample import update_resampled_coords
label_desc: Use image node_id 3 for calling the TestAWIPSTiledWriter obj's underlying member method code with example usage: obj.test_units_length_warning(tmp_path) without return types