#NEWLINE# def test_ordered_wrong_sorting( self ) : #NEWLINE# #INDENT# '\n        Sorting by a non-shared field should throw a KeyError\n        ' #NEWLINE# view = OrderedWrongView . as_view ( ) #NEWLINE# request = factory . get ( '/' ) #NEWLINE# self . assertRaises ( KeyError , view , view )