def data1(self, id): #print "Check entry data", id, e = self.pool.GetEntry(id) d = e.GetData() self.assert_(d.get(u"ftext") == data1_1.get(u"ftext")) self.assert_(d.get(u"fnumber") == data1_1.get(u"fnumber")) self.assert_( self.pool.GetDBDate(str(d.get(u"fdate"))) == self.pool.GetDBDate( str(data1_1.get(u"fdate")))) self.assert_(d.get(u"flist") == data1_1.get(u"flist")) self.assert_(d.get(u"fmselect") == data1_1.get(u"fmselect")) self.assert_(d.get(u"funit") == data1_1.get(u"funit")) self.assert_(d.get(u"funitlist") == data1_1.get(u"funitlist")) self.assert_(type(d.get(u"ftext")) == UnicodeType)
def data1(self, id): #print "Check entry data", id, e=self.pool.GetEntry(id) d=e.GetData() self.assert_(d.get(u"ftext") == data1_1.get(u"ftext") ) self.assert_(d.get(u"fnumber") == data1_1.get(u"fnumber") ) self.assert_(self.pool.GetDBDate(str(d.get(u"fdate"))) == self.pool.GetDBDate(str(data1_1.get(u"fdate")))) self.assert_(d.get(u"flist") == data1_1.get(u"flist") ) self.assert_(d.get(u"fmselect") == data1_1.get(u"fmselect") ) self.assert_(d.get(u"funit") == data1_1.get(u"funit") ) self.assert_(d.get(u"funitlist")== data1_1.get(u"funitlist")) self.assert_(type(d.get(u"ftext"))==UnicodeType )
def set1(self, id): #print "Store data", id, e = self.pool.GetEntry(id) self.assert_(e) e.data.update(data1_1) e.meta.update(meta1) e.Commit(user="******") self.assert_(e.GetMeta()) d = e.GetData() self.assert_(d.get(u"ftext") == data1_1.get(u"ftext")) self.assert_(d.get(u"fnumber") == data1_1.get(u"fnumber")) self.assert_( self.pool.GetDBDate(str(d.get(u"fdate"))) == self.pool.GetDBDate( str(data1_1.get(u"fdate")))) self.assert_(d.get(u"flist") == data1_1.get(u"flist")) self.assert_(d.get(u"fmselect") == data1_1.get(u"fmselect")) self.assert_(d.get(u"funit") == data1_1.get(u"funit")) self.assert_(d.get(u"funitlist") == data1_1.get(u"funitlist")) self.assert_(type(d.get(u"ftext")) == UnicodeType)
def set1(self, id): #print "Store data", id, e=self.pool.GetEntry(id) self.assert_(e) e.data.update(data1_1) e.meta.update(meta1) e.Commit(user="******") self.assert_(e.GetMeta()) d=e.GetData() self.assert_(d.get(u"ftext") == data1_1.get(u"ftext") ) self.assert_(d.get(u"fnumber") == data1_1.get(u"fnumber") ) self.assert_(self.pool.GetDBDate(str(d.get(u"fdate"))) == self.pool.GetDBDate(str(data1_1.get(u"fdate")))) self.assert_(d.get(u"flist") == data1_1.get(u"flist") ) self.assert_(d.get(u"fmselect") == data1_1.get(u"fmselect") ) self.assert_(d.get(u"funit") == data1_1.get(u"funit") ) self.assert_(d.get(u"funitlist")== data1_1.get(u"funitlist")) self.assert_(type(d.get(u"ftext"))==UnicodeType)