From 0edb028bbf0f6f3228686765c3be1d0ca35fe173 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 25 Oct 2017 15:22:34 -0400 Subject: [PATCH] Finish updating DocumentAPITestCase tests to test for access. Start updateing DeletedDocumentAPITestCase tests to test the access. Signed-off-by: Roberto Rosario --- mayan/apps/documents/tests/test_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mayan/apps/documents/tests/test_api.py b/mayan/apps/documents/tests/test_api.py index 87910573ca..4eeb2aa45e 100644 --- a/mayan/apps/documents/tests/test_api.py +++ b/mayan/apps/documents/tests/test_api.py @@ -184,6 +184,7 @@ class DocumentAPITestCase(BaseAPITestCase): ) response = self._request_document_upload() self.assertEqual(response.status_code, status.HTTP_201_CREATED) + self.assertEqual(Document.objects.count(), 1) document = Document.objects.first()