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
2017-10-25 15:22:34 -04:00
parent cc7f69b908
commit 0edb028bbf

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()