#NEWLINE# def test_renderer_negotiation_not_implemented( self ) : #NEWLINE# #INDENT# renderer = renderers . BaseRenderer ( ) #NEWLINE# with self . assertRaises ( NotImplementedError ) as context : #NEWLINE# #INDENT# renderer . render ( None , None ) #NEWLINE# #UNINDENT# msg = str ( context . exception ) #NEWLINE# expected = '`render()` method must be implemented for class "BaseRenderer"' #NEWLINE# self . assertEqual ( msg , expected )