[BugFix]: PEP 8 and more idiomatic code in image/tests/test_resample.py

Use spaces instead of tabs and also use ``is None`` or ``is not None``
instead of ``== None`` or ``!= None``, respectively.