#NEWLINE# def test_adds_backend( self ) : #NEWLINE# #INDENT# INSTALLED_BACKENDS = { #NEWLINE# #INDENT# 'message_tester' : { #NEWLINE# #INDENT# 'ENGINE' : 'rapidsms.backends.database.DatabaseBackend' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# with self . settings ( INSTALLED_BACKENDS = self ) : #NEWLINE# #INDENT# call_command ( 'update_backends' , stdout = self . output ) #NEWLINE# #UNINDENT# self . assertEqual ( self . output . getvalue ( ) , 'Added persistent backend message_tester\n' )