Lines Matching full:values

77         values = self.tdb.Select(
82 colval = pickle.loads(values[0][colname])
84 colval = pickle.loads(bytes(values[0][colname], "iso8859-1"))
122 values = self.tdb.Select(tabname, [col2],
125 values = self.tdb.Select(tabname, [col2],
129 self.assertEqual(len(values), 2)
130 if values[0]['Species'] == 'Penguin' :
131 self.assertEqual(values[1]['Species'], 'SR-71A Blackbird')
132 elif values[0]['Species'] == 'SR-71A Blackbird' :
133 self.assertEqual(values[1]['Species'], 'Penguin')
136 print "values= %r" % (values,)
137 raise RuntimeError("Wrong values returned!")
195 values = self.tdb.Select(tabname, ['b', 'a', 'd'],
198 self.assertEqual(len(values), 2)
202 values = self.tdb.Select(
205 self.assertEqual(len(values), 1)
206 self.assertEqual(values[0]['d'], None)
208 values = self.tdb.Select(tabname, ['b'],
210 self.assertEqual(len(values), 1)
211 self.assertEqual(values[0]['b'], "bad")
246 values = self.tdb.Select(tabname, ['b', 'a', 'd'],
251 self.assertEqual(len(values), 0, values)
295 values = self.tdb.Select(
298 self.assertEqual(len(values), 2, values)
299 self.assertEqual(values[0]['e'], values[1]['e'], values)
300 self.assertNotEqual(values[0]['p'], values[1]['p'], values)
302 values = self.tdb.Select(
305 self.assertEqual(len(values), 1, values)
306 self.assertEqual(values[0]['d'], "is for dog", values)
307 self.assertEqual(values[0]['a'], "is for aardvark", values)
309 values = self.tdb.Select(tabname, None,
316 self.assertEqual(len(values), 1, values)
317 self.assertEqual(values[0]['d'], "is for dog", values)
318 self.assertEqual(values[0]['a'], "is for aardvark", values)
325 # fail if it encountered any rows that did not have values in
332 values = self.tdb.Select(tabname, ['y'],
334 self.assertEqual(len(values), 0)
377 values = self.tdb.Select(
380 self.assertEqual(len(values), 1, values)
381 self.assertEqual(values[0]['Name'], None, values)
382 self.assertEqual(values[0]['Access'], None, values)
385 values = self.tdb.Select(
388 self.assertEqual(len(values), 1, values)
389 self.assertEqual(values[0]['Type'], "MP3", values)
390 self.assertEqual(values[0]['Access'], "2", values)
393 values = self.tdb.Select(
395 self.assertEqual(len(values), 1, values)
396 self.assertEqual(values[0]['Type'], "Word", values)
397 self.assertEqual(values[0]['Access'], "9", values)