#NEWLINE# @ mock . patch ( 'daybed.backends.redis.RedisBackend.__init__' ) #NEWLINE# def test_load_from_config( self , constructor_mock ) : #NEWLINE# #INDENT# constructor_mock . return_value = None #NEWLINE# config = mock . MagicMock ( ) #NEWLINE# RedisBackend . load_from_config ( config ) #NEWLINE# self . assertTrue ( constructor_mock . called )