#NEWLINE# def test_novalidbackend_msg( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# backends . NullBackend ( ) . shortname ( ) #NEWLINE# self . fail ( 'Should have raised!' ) #NEWLINE# #UNINDENT# except backends . NoValidBackend as ex : #NEWLINE# #INDENT# self . assertEqual ( ex . args , ( backends . NO_VALID_BACKEND_MSG , ) )