Use assertIsNone when comparing against None

Automatic enforcement of this rule is added in:
https://review.openstack.org/78119

bp more-code-style-automation

Change-Id: I3969d7595494d5df5bdb072234f2facc6000ab30
Merge "Use assertIsNone when comparing against None"