def deleteAllTables(self): """ Don't run unless explicitly requested. Doesn't seem to work. """ tc = TableConnection(client=self.cli, tableName=self.tableName) tc.deleteAllTables() ofiles = list(tc.findByName()) self.assertEqual(len(ofiles), 0)
def test_findByName(self): tid = self.create_table() tc = TableConnection(client=self.cli, tableName=self.tableName) found = False for ofiles in tc.findByName(): found = found or unwrap(ofiles.getId()) == tid self.assertTrue(found) tc.close()