- assert temp_db_cursor.scalar("""SELECT count(*) FROM word
- WHERE type = 'W' and word_id = 1000 and
- (info->>'count')::int > 0""") == 1
- assert temp_db_cursor.scalar("""SELECT count(*) FROM word
- WHERE type = 'W' and word_id = 1001 and
- (info->>'addr_count')::int > 0""") == 1
+ assert temp_db_cursor.row_set("""SELECT word_id,
+ (info->>'count')::int,
+ (info->>'addr_count')::int
+ FROM word
+ WHERE type = 'W'""") == \
+ {(1000, 2, None), (1001, 2, None), (1002, None, 2)}