def test02_where(self):
        """Searching nested data."""

        tbl = self.h5file.create_table(
            '/', 'test', self._TestTDescr, title=self._getMethodName())
        tbl.append(self._testAData)
        tbl.flush()

        if self.reopen:
            self._reopen()
            tbl = self.h5file.root.test

        searchedCoords = tbl.get_where_list(
            self._testCondition, self._testCondVars(tbl))

        # All but the last row match the condition.
        searchedCoords.sort()
        self.assertEqual(searchedCoords.tolist(),
                         list(range(len(self._testAData) - 1)),
                         "Search returned incorrect results.")
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_nestedtypes.py/WriteTestCase.test02_where/original