Update tests to rely less on view response text.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-30 03:50:37 -04:00
parent 6594756c5b
commit 41b8d6157a
5 changed files with 52 additions and 39 deletions

View File

@@ -81,7 +81,8 @@ class SignaturesViewTestCase(GenericDocumentViewTestCase):
args=(document.latest_version.pk,)
)
self.assertContains(response, 'Total: 1', status_code=200)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['object_list'].count(), 1)
def test_signature_detail_view_no_permission(self):
with open(TEST_KEY_FILE) as file_object: