code: def test_rule_side_aligned_not_enough_space_for_rule(align):
      console = Console(width=2, file=io.StringIO(), record=True)
      console.rule("ABCD", align=align)
      assert console.file.getvalue() == "──\n"
  
file_path: rich/tests/test_rule.py
imports: import io
  import pytest
  from rich.console import Console
  from rich.rule import Rule
  from rich.text import Text
label_desc: Use image node_id 7 for calling a global function with example usage: test_rule_side_aligned_not_enough_space_for_rule(align) without return types