Update event tests to use .id of an event instead of the .name.

The .id now also returns the namespace.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-09-07 01:01:11 -04:00
parent f2e84c0256
commit 824c371d92
3 changed files with 6 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ class DocumentParsingEventsTestCase(GenericDocumentTestCase):
)
self.assertEqual(
Action.objects.last().verb,
event_parsing_document_version_submit.name
event_parsing_document_version_submit.id
)
def test_document_version_finish_event(self):
@@ -35,5 +35,5 @@ class DocumentParsingEventsTestCase(GenericDocumentTestCase):
)
self.assertEqual(
Action.objects.first().verb,
event_parsing_document_version_finish.name
event_parsing_document_version_finish.id
)