#NEWLINE# def test_list( self , **kwargs ) : #NEWLINE# #INDENT# "Send request to the list view endpoint, verify and return the response.\n\n        Checks for a 200 status code and that there is a ``results`` property in the ``response.data``.\n\n        You can extend it for more extensive checks.\n\n        .. admonition:: example\n\n            .. code:: python\n\n                class LanguageRESTAPITestCase(ListAPITestCaseMixin, BaseRESTAPITestCase):\n\n                    def test_list(self, **kwargs):\n                        response = super(LanguageRESTAPITestCase, self).test_list(**kwargs)\n                        results = response.data.get('results')\n                        self.assertEqual(results[0].get('code'), self.object.code)\n\n        :param kwargs: Extra arguments that are passed to the client's ``get()`` call.\n        :returns: The view's response.\n        " #NEWLINE# response = self . get_list_response ( ** kwargs ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK , response . data ) #NEWLINE# results = response . data #NEWLINE# if self . pagination_results_field : #NEWLINE# #INDENT# self . assertIn ( self . pagination_results_field , response . data ) #NEWLINE# results = results [ self . pagination_results_field ] #NEWLINE# #UNINDENT# self . assertTrue ( ( len ( results ) >= 1 ) ) #NEWLINE# return response