#NEWLINE# def test_get_repositories_with_path_many( self ) : #NEWLINE# #INDENT# 'Testing the GET repositories/?path= API and comma-separated lists' #NEWLINE# self . create_repository ( name = 'test1' , path = 'dummy1' , tool_name = 'Test' ) #NEWLINE# self . create_repository ( name = 'test2' , path = 'dummy2' , tool_name = 'Test' ) #NEWLINE# self . create_repository ( name = 'test3' , path = 'dummy3' , tool_name = 'Test' ) #NEWLINE# rsp = self . api_get ( ( get_repository_list_url ( ) + '?path=dummy1,dummy2' ) , expected_mimetype = repository_list_mimetype ) #NEWLINE# self . assertEqual ( self [ 'stat' ] , 'ok' ) #NEWLINE# self . assertEqual ( len ( rsp [ 'repositories' ] ) , 2 ) #NEWLINE# self . assertEqual ( rsp [ 'repositories' ] [ 0 ] [ 'name' ] , 'test1' ) #NEWLINE# self . assertEqual ( rsp [ 'repositories' ] [ 1 ] [ 'name' ] , 'test2' )