Use assertIsNone

Make use of assertIsNone instead of checking if the returned value
is equal to None.

Change-Id: I0dd7633835ad82d4d53397cf9f256b7bb8117c49
Merge "Use assertIsNone"