#NEWLINE# def setup_basic_get_test( self , user , with_local_site , local_site_name ) : #NEWLINE# #INDENT# account = HostingServiceAccount . objects . create ( service_name = 'github' , username = 'bob' , local_site = self . get_local_site_or_none ( name = local_site_name ) , data = json . dumps ( { #NEWLINE# #INDENT# 'authorization' : { #NEWLINE# #INDENT# 'token' : '123' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# remote_repository = RemoteRepository ( account . service , repository_id = '123' , name = 'repo1' , owner = 'bob' , scm_type = 'Git' , path = 'ssh://example.com/repo1' , mirror_path = 'https://example.com/repo1' ) #NEWLINE# self . spy_on ( GitHub . get_remote_repository , call_fake = ( lambda * args , **kwargs : remote_repository ) ) #NEWLINE# return ( get_remote_repository_item_url ( remote_repository , local_site_name ) , remote_repository_item_mimetype , remote_repository )