def assert_all(obj):
if isinstance(obj, pd.DataFrame):<EOL><INDENT>assert obj.all().all()<EOL><DEDENT>else:<EOL><INDENT>assert obj.all()<EOL><DEDENT>
Test helper to call call obj.all() the appropriate number of times on
a Series or DataFrame.