#NEWLINE# def test_terms_list_all_str( self ) : #NEWLINE# #INDENT# series_input = [ { #NEWLINE# #INDENT# 'options' : { #NEWLINE# #INDENT# 'source' : SalesHistory . objects . all ( ) , #NEWLINE# #UNINDENT# } , #NEWLINE# 'terms' : [ 'price' , 'book__genre__name' ] , #NEWLINE# #UNINDENT# } ] #NEWLINE# series_cleaned = { #NEWLINE# #INDENT# 'price' : { #NEWLINE# #INDENT# 'source' : SalesHistory . objects . all ( ) , #NEWLINE# 'field' : 'price' , #NEWLINE# 'field_alias' : 'price' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'book__genre__name' : { #NEWLINE# #INDENT# 'source' : SalesHistory . objects . all ( ) , #NEWLINE# 'field' : 'book__genre__name' , #NEWLINE# 'field_alias' : 'name' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertOptionDictsEqual ( clean_dps ( series_input ) , series_cleaned )