test code coverage progress

This commit is contained in:
Gervais Naoussi 2015-12-08 18:42:06 +01:00
parent 8390365f46
commit 9dbe6eb31d

View File

@ -16,8 +16,6 @@ class TestDocumentPageShowDiff(common.TransactionCase):
history_document = self.env['document.page.history']
history_pages = history_document.search([('page_id', '=', page.id)])
self.assertEqual(len([i.id for i in history_pages]), 2)
self.assertTrue(show_diff_object.with_context(
active_ids=[i.id for i in history_pages]
).get_diff())
@ -26,8 +24,6 @@ class TestDocumentPageShowDiff(common.TransactionCase):
history_pages = history_document.search([('page_id', '=', page.id)])
self.assertEqual(len([i.id for i in history_pages]), 1)
with self.assertRaises(Exception) as context:
show_diff_object.with_context(
active_ids=[i.id for i in history_pages]