code: def test_array_pointers(self):
      INTARRAY = c_int * 3
      ia = INTARRAY()
      self.assertEqual(len(ia), 3)
      self.assertEqual([ia[i] for i in range(3)], [0, 0, 0])
  
      # Pointers are only compatible with arrays containing items of
      # the same type!
      LPINT = POINTER(c_int)
      LPINT.from_param((c_int * 3)())
      self.assertRaises(TypeError, LPINT.from_param, c_short * 3)
      self.assertRaises(TypeError, LPINT.from_param, c_long * 3)
      self.assertRaises(TypeError, LPINT.from_param, c_uint * 3)
  
imports: import _ctypes_test
  import unittest
  import test.support
  from ctypes import CDLL, PyDLL, ArgumentError, Structure, Array, Union, _Pointer, _SimpleCData, _CFuncPtr, POINTER, pointer, byref, c_void_p, c_char_p, c_wchar_p, py_object, c_bool, c_char, c_wchar, c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_float, c_double, c_longdouble
label_desc: Use image node_id 12 for calling the SimpleTypesTestCase obj's underlying member method code with example usage: obj.test_array_pointers() without return types