code: def test_class_file(expected_class_string, written_class_string):
      assert not list(
          unified_diff(
              expected_class_string.splitlines(),
              written_class_string.splitlines(),
          )
      )
      assert not has_trailing_space(written_class_string)
  
file_path: dash/tests/unit/development/test_generate_class_file.py
imports: import os
  import shutil
  from difflib import unified_diff
  import pytest
  from dash.development._py_components_generation import generate_class_string, generate_class_file
  from .None import _dir, has_trailing_space
label_desc: Use image node_id 6 for calling a global function with example usage: test_class_file(expected_class_string, written_class_string) without return types