def test_displays_all_required_documents(self):
        self.client.login(username=self.username, password=self.password)
        for rule_id in ['2', '7']:
            url = reverse('files_document', kwargs={'id_rule': rule_id})
            data = {"finish": "15",
                    "order": "created_date",
                    "start": "0"
                    }
            response = self.client.post(url, data)
            if rule_id == '2':
                self._check_docs_exist(
                    response,
                    self.documents_pdf,
                    [self.documents_missing, self.documents_tif, self.documents_txt]
                )
            if rule_id == '7':
                self._check_docs_exist(
                    response,
                    self.documents_pdf2,
                    [self.documents_pdf, self.documents_missing, self.documents_tif, self.documents_txt]
                )
Documents found by browser app and rendered properly by API.
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/browser/tests.py/ViewTest.test_displays_all_required_documents