docstr: Test _PyUnicode_TransformDecimalAndSpaceToASCII()
docstr_tok: ["Test","_PyUnicode_TransformDecimalAndSpaceToASCII","(",")"]
code: def test_transform_decimal_and_space(self):
      """Test _PyUnicode_TransformDecimalAndSpaceToASCII()"""
      from _testinternalcapi import (
          _PyUnicode_TransformDecimalAndSpaceToASCII as transform_decimal,
      )
  
      self.assertEqual(transform_decimal("123"), "123")
      self.assertEqual(transform_decimal("\u0663.\u0661\u0664"), "3.14")
      self.assertEqual(
          transform_decimal("\N{EM SPACE}3.14\N{EN SPACE}"), " 3.14 "
      )
      self.assertEqual(transform_decimal("12\u20ac3"), "12?")
      self.assertEqual(transform_decimal(""), "")
  
      self.assertRaises(SystemError, transform_decimal, b"123")
      self.assertRaises(SystemError, transform_decimal, [])
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 26 for calling the CAPITest obj's underlying member method code with example usage: obj.test_transform_decimal_and_space() without return types