#NEWLINE# def test_document_collections( self ) : #NEWLINE# #INDENT# collection_documenter = CollectionDocumenter ( collection_documenter . resource ) #NEWLINE# collection_documenter . document_collections ( self . doc_structure ) #NEWLINE# self . assert_contains_lines_in_order ( [ '.. py:attribute:: samples' , '  A collection of Sample resources' , '  .. py:method:: all()' , '    Creates an iterable of all Sample resources in the collection.' , '    **Request Syntax** ' , '    ::' , '      sample_iterator = myservice.samples.all()' , '    :rtype: list(:py:class:`myservice.Sample`)' , '    :returns: A list of Sample resources' , '  .. py:method:: filter(**kwargs)' , '    Creates an iterable of all Sample resources in the collection filtered by kwargs passed to method.' , '    **Request Syntax** ' , '    ::' , '      sample_iterator = myservice.samples.filter(' , "          Foo='string'," , "          Bar='string'" , '      )' , '    :type Foo: string' , '    :param Foo: Documents Foo' , '    :type Bar: string' , '    :param Bar: Documents Bar' , '    :rtype: list(:py:class:`myservice.Sample`)' , '    :returns: A list of Sample resources' , '  .. py:method:: limit(**kwargs)' , '    Creates an iterable up to a specified amount of Sample resources in the collection.' , '    **Request Syntax** ' , '    ::' , '      sample_iterator = myservice.samples.limit(' , '          count=123' , '      )' , '    :type count: integer' , '    :param count: The limit to the number of resources in the iterable.' , '    :rtype: list(:py:class:`myservice.Sample`)' , '    :returns: A list of Sample resources' , '  .. py:method:: operate(**kwargs)' , '    **Request Syntax** ' , '      response = myservice.samples.operate(' , "          Foo='string'," , "          Bar='string'" , '      )' , '    :type Foo: string' , '    :param Foo: Documents Foo' , '    :type Bar: string' , '    :param Bar: Documents Bar' , '    :rtype: dict' , '    :returns: ' , '      **Response Syntax** ' , '      ::' , '        {' , "            'Foo': 'string'," , "            'Bar': 'string'" , '        }' , '      **Response Structure** ' , '      - *(dict) --* ' , '        - **Foo** *(string) --* Documents Foo' , '        - **Bar** *(string) --* Documents Bar' , '  .. py:method:: page_size(**kwargs)' , '    Creates an iterable of all Sample resources in the collection, but limits the number of items returned by each service call by the specified amount.' , '    **Request Syntax** ' , '    ::' , '' , '      sample_iterator = myservice.samples.page_size(' , '          count=123' , '      )' , '    :type count: integer' , '    :param count: The number of items returned by each service call' , '    :rtype: list(:py:class:`myservice.Sample`)' , '    :returns: A list of Sample resources' , '    ' ] )