#NEWLINE# def test_sort_desc( self ) : #NEWLINE# #INDENT# q = '' #NEWLINE# sort = dbcore . query . SlowFieldSort ( 'path' , False ) #NEWLINE# results = self . lib . albums ( q , sort ) #NEWLINE# self . assertGreaterEqual ( results [ 0 ] [ 'path' ] , results [ 1 ] [ 'path' ] ) #NEWLINE# self . assertGreaterEqual ( results [ 1 ] [ 'path' ] , results [ 2 ] [ 'path' ] ) #NEWLINE# q = 'path-' #NEWLINE# results2 = self . lib . albums ( q ) #NEWLINE# for ( r1 , r2 ) in zip ( results , results2 ) : #NEWLINE# #INDENT# self . assertEqual ( r1 . id , r2 . id )