#NEWLINE# def test_source_missing( self ) : #NEWLINE# #INDENT# series_input = [ { #NEWLINE# #INDENT# 'options' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'terms' : [ 'price' , { #NEWLINE# #INDENT# 'genre' : { #NEWLINE# #INDENT# 'field' : 'book__genre__name' , #NEWLINE# 'source' : SalesHistory . objects . filter ( price__gte = 10 ) , #NEWLINE# 'field_alias' : 'gnr' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertRaises ( APIInputError , clean_dps , self )