def assert_not_instance_of(expected, actual, msg=None):
 assert (not isinstance(actual, expected, msg))

def assert_not_instance_of ( expected , actual , msg = None ) : assert ( not isinstance ( actual , expected , msg ) )
verify that object is not an instance of expected .