Skip to content

Commit

Permalink
[IMP] test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
serpentcs-dev1 committed Mar 16, 2017
1 parent 99be777 commit c62b3d0
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -6,6 +6,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from openerp.tests.common import TransactionCase
from openerp import exceptions
from datetime import datetime
from datetime import date, timedelta

Expand Down Expand Up @@ -295,6 +296,12 @@ def test_inventory_revaluation_value_change(self):
invent_value_change.account_move_ids[0].line_ids), 2,
'Incorrect accounting entry generated')

with self.assertRaises(exceptions.Warning):
invent_value_change.account_move_ids.unlink()

with self.assertRaises(exceptions.Warning):
invent_value_change.account_move_ids[0].line_ids.unlink()

for move_line in invent_value_change.account_move_ids[0].line_ids:
if move_line.account_id == self.account_inventory:
self.assertEqual(move_line.credit, 50.0,
Expand Down

0 comments on commit c62b3d0

Please sign in to comment.