def METHOD_NAME(self):
    import _ctypes_test
    dll = WinDLL(_ctypes_test.__file__)
    # We load the same function both via ordinal and name
    func_ord = dll[2]
    func_name = dll.GetString
    # addressof gets the address where the function pointer is stored
    a_ord = addressof(func_ord)
    a_name = addressof(func_name)
    f_ord_addr = c_void_p.from_address(a_ord).value
    f_name_addr = c_void_p.from_address(a_name).value
    self.assertEqual(hex(f_ord_addr), hex(f_name_addr))
    self.assertRaises(AttributeError, dll.__getitem__, 1234)