def fixture_to_tables(fixture):
 tables = []
 for (title, content) in fixture.iteritems():
  rows = []
  keys = content.keys()
  keys.sort()
  rows.append(tuple(keys))
  row1 = []
  for col in rows[0]:
   row1.append(content[col])
  rows.append(tuple(row1))
  tables.append((title, tuple(rows)))
 return tables

def fixture_to_tables ( fixture ) : tables = [ ] for ( title , content ) in fixture . iteritems ( ) : rows = [ ] keys = content . keys ( ) keys . sort ( ) rows . append ( tuple ( keys ) ) row1 = [ ] for col in rows [ 0 ] : row1 . append ( content [ col ] ) rows . append ( tuple ( row1 ) ) tables . append ( ( title , tuple ( rows ) ) ) return tables
convert fixture into *behave* examples .