Using assertEqual/assertNotEqual to test if an element
is or is not None is too python2.4.
Our unit testing framework supports assertIsNone and assertIsNotNone
which were created for these types of tests.
Change-Id: Ieba2d4ce5602885dc8a33a938a40f3086879b2c3