Finish updating DocumentAPITestCase tests to test for access.

Start updateing DeletedDocumentAPITestCase tests to test the access.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-04-01 18:19:11 -04:00
parent cc7f69b908
commit 0edb028bbf
+1
View File
@@ -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()