'Checks if the row object can be correctly converted to a dictionary'

def CheckSqliteRowAsDict(self):

    self.con.row_factory = sqlite.Row
    row = self.con.execute('select    1    as    a,    2    as    b').fetchone()
    d = dict(row)
    self.assertEqual(d['a'], row['a'])
    self.assertEqual(d['b'], row['b'])
