def METHOD_NAME(self):
    func = testdll._testfunc_p_p
    func.restype = c_void_p
    class X:
        _as_parameter_ = None
    func.argtypes = c_void_p,
    self.assertEqual(None, func(X()))
    func.argtypes = None
    self.assertEqual(None, func(X()))