Test that the object obj has (or has not) an attribute name.
unittest/TestCase.assertNotHasAttr
TestCase.assertNotHasAttr