#NEWLINE# def test_sort_1( ) : #NEWLINE# #INDENT# table = ( ( 'foo' , 'bar' ) , ( 'C' , '2' ) , ( 'A' , '9' ) , ( 'A' , '6' ) , ( 'F' , '1' ) , ( 'D' , '10' ) ) #NEWLINE# result = sort ( table , 'foo' ) #NEWLINE# expectation = ( ( 'foo' , 'bar' ) , ( 'A' , '9' ) , ( 'A' , '6' ) , ( 'C' , '2' ) , ( 'D' , '10' ) , ( 'F' , '1' ) ) #NEWLINE# ieq ( expectation , result )