def check(self, result, original, indexer, getitem):
if isinstance(original, Series):<EOL><INDENT>expected = original.iloc[indexer]<EOL><DEDENT>else:<EOL><INDENT>if getitem:<EOL><INDENT>expected = original.iloc[:, indexer]<EOL><DEDENT>else:<EOL><INDENT>expected = original.iloc[indexer]<EOL><DEDENT><DEDENT>assert_almost_equal(result, expected)<EOL>
comparator for results
we need to take care if we are indexing on a
Series or a frame