def testErrorInGet(self): self.repofile(self.sf.db_uuid) f = omero.model.OriginalFileI( 1, False) self.sf.return_values.append( f ) tables = self.tablesI() table = tables.getTable(f, self.sf, self.current).table # From mock cols = [ omero.columns.LongColumnI('name','desc',None) ] table.initialize(cols) cols[0].values = [1,2,3,4] table.addData(cols) table.getWhereList('(name==1)',None,0,0,0,self.current)
def testErrorInGet(self): self.repofile(self.sf.db_uuid) f = omero.model.OriginalFileI(1, False) self.sf.return_values.append(f) tables = self.tablesI() table = tables.getTable(f, self.sf, self.current).table # From mock cols = [omero.columns.LongColumnI('name', 'desc', None)] table.initialize(cols) cols[0].values = [1, 2, 3, 4] table.addData(cols) table.getWhereList('(name==1)', None, 0, 0, 0, self.current)
def testTables(self, newfile = True): if newfile: self.repofile(self.sf.db_uuid) f = omero.model.OriginalFileI( 1, False) self.sf.return_values.append( f ) tables = self.tablesI() table = tables.getTable(f, self.sf, self.current) self.assert_( table ) self.assert_( table.table ) self.assert_( table.table.storage ) return table
def testTables(self, newfile=True): if newfile: self.repofile(self.sf.db_uuid) f = omero.model.OriginalFileI(1, False) self.sf.return_values.append(f) tables = self.tablesI() table = tables.getTable(f, self.sf, self.current) assert table assert table.table assert table.table.storage return table
def testTables(self, newfile=True): if newfile: self.repofile(self.sf.db_uuid) f = omero.model.OriginalFileI(1, True) f.details.group = omero.model.ExperimenterGroupI(1, False) self.sf.return_values.append(f) tables = self.tablesI() table = tables.getTable(f, self.sf, self.current) assert table assert table.table assert table.table.storage return table