#NEWLINE# def assertData( self , ModelClass , expected ) : #NEWLINE# #INDENT# name_field = ModelClass . _meta . sorted_fields [ 1 ] #NEWLINE# query = ModelClass . select ( ) . order_by ( name_field ) . tuples ( ) #NEWLINE# self . assertEqual ( [ row for row in query ] , expected )