Query with same storage.
(self)
| 6789 | tbl.flush() |
| 6790 | |
| 6791 | def test00_same(self): |
| 6792 | """Query with same storage.""" |
| 6793 | |
| 6794 | DstTblDesc = self.SrcTblDesc |
| 6795 | |
| 6796 | tbl1 = self.h5file.root.test |
| 6797 | tbl2 = self.h5file.create_table("/", "test2", DstTblDesc) |
| 6798 | |
| 6799 | tbl1.append_where(tbl2, "id > 1") |
| 6800 | |
| 6801 | # Rows resulting from the query are those in the new table. |
| 6802 | it2 = iter(tbl2) |
| 6803 | for r1 in tbl1.where("id > 1"): |
| 6804 | r2 = next(it2) |
| 6805 | self.assertTrue( |
| 6806 | r1["id"] == r2["id"] |
| 6807 | and r1["v1"] == r2["v1"] |
| 6808 | and r1["v2"] == r2["v2"] |
| 6809 | ) |
| 6810 | |
| 6811 | # There are no more rows. |
| 6812 | self.assertRaises(StopIteration, next, it2) |
| 6813 | |
| 6814 | def test01_compatible(self): |
| 6815 | """Query with compatible storage.""" |
nothing calls this directly
no test coverage detected