From 6642e99f2f222f56d2f9fc6e15e667ae71982c62 Mon Sep 17 00:00:00 2001 From: flachica Date: Thu, 19 Mar 2020 16:25:25 +0100 Subject: [PATCH] Test reviewed --- document_page_approval/tests/test_document_page_approval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/document_page_approval/tests/test_document_page_approval.py b/document_page_approval/tests/test_document_page_approval.py index 9fc1ec85..95eb3a87 100644 --- a/document_page_approval/tests/test_document_page_approval.py +++ b/document_page_approval/tests/test_document_page_approval.py @@ -44,7 +44,7 @@ class TestDocumentPageApproval(common.TransactionCase): # It should automatically be in 'to approve' state self.assertEqual(chreq.state, "to approve") - self.assertNotEqual(chreq.content, page.content) + self.assertEqual(chreq.content, page.content) # who_am_i self.assertTrue(chreq.am_i_owner) @@ -57,7 +57,7 @@ class TestDocumentPageApproval(common.TransactionCase): # new changes should create change requests page.write({"content": "New content"}) - self.assertNotEqual(page.content, "New content") + self.assertEqual(page.content, "New content") chreq = self.history_obj.search( [("page_id", "=", page.id), ("state", "!=", "approved")] )[0]