#NEWLINE# def test_queryset_order_by( self ) : #NEWLINE# #INDENT# planets = swapi . get_all ( 'planets' ) #NEWLINE# ordered = planets . order_by ( 'diameter' ) #NEWLINE# self . assertEquals ( ordered [ 0 ] . diameter , '0' ) #NEWLINE# people = swapi . get_all ( 'people' ) #NEWLINE# ordered = people . order_by ( 'name' ) #NEWLINE# self . assertEquals ( ordered [ 0 ] . name , 'Ackbar' )