def test_method_call(n, params):
  "Calling with dummy parameters:"
  c = PixmapRand(10, 10, core.C.PIXEL_RGB888)
  if isinstance(params, str):
    c.gfx.__getattribute__(n)(*gen_dummy_args(params))
  else:
    assert isinstance(params, tuple) and isinstance(params[-1], dict)
    c.gfx.__getattribute__(n)(*params[:-1], **params[-1])