#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . as_yaml_files = [ ] #NEWLINE# config = Mock ( app_service_config_files = self . as_yaml_files , event_cache_size = 1 ) #NEWLINE# hs = ( yield setup_test_homeserver ( config = config ) ) #NEWLINE# self . as_token = 'token1' #NEWLINE# self . as_url = 'some_url' #NEWLINE# self . as_id = 'as1' #NEWLINE# self . _add_appservice ( self . as_token , self . as_id , self . as_url , 'some_hs_token' , 'bob' ) #NEWLINE# self . _add_appservice ( 'token2' , 'as2' , 'some_url' , 'some_hs_token' , 'bob' ) #NEWLINE# self . _add_appservice ( 'token3' , 'as3' , 'some_url' , 'some_hs_token' , 'bob' ) #NEWLINE# self . store = ApplicationServiceStore ( hs )