#NEWLINE# def test_new_labels( self ) : #NEWLINE# #INDENT# '\n        Adding labels as a third element in the queryList elements should use those labels\n        instead of the model names\n        ' #NEWLINE# view = LabelTestView . as_view ( ) #NEWLINE# request = factory . get ( '/' ) #NEWLINE# with self . assertNumQueries ( 2 ) : #NEWLINE# #INDENT# response = view ( request ) . render ( ) #NEWLINE# #UNINDENT# self . assertEqual ( self . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( len ( response . data ) , 2 ) #NEWLINE# self . assertIn ( 'The Plays' , response . data [ 0 ] . keys ( ) ) #NEWLINE# self . assertIn ( 'The Sonnets' , response . data [ 1 ] . keys ( ) )