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

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