tests: Simplify mock.patch usage.
tests: Simplify mock.patch usage.

By passing `new_callable=IoctlMock` instead of `new=IoctlMock(...)`, we can
use a decorator instead of a with statement.

olavmrk/python-ioctl,olavmrk/python-ioctl