Commit dd656171 authored by Jérome Perrin's avatar Jérome Perrin

testERP5Administration: py3

parent 5b8cfe0f
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
import unittest import unittest
import time import time
import six
from Products.ERP5.tests.testInventoryAPI import InventoryAPITestCase from Products.ERP5.tests.testInventoryAPI import InventoryAPITestCase
class TestERP5Administration(InventoryAPITestCase): class TestERP5Administration(InventoryAPITestCase):
...@@ -105,8 +106,14 @@ class TestERP5Administration(InventoryAPITestCase): ...@@ -105,8 +106,14 @@ class TestERP5Administration(InventoryAPITestCase):
line_list = alarm.Alarm_viewConsistencyCheckReport.listbox.get_value( line_list = alarm.Alarm_viewConsistencyCheckReport.listbox.get_value(
'default', render_format='list') 'default', render_format='list')
self.assertEqual(1, len([line for line in line_list if line.isDataLine()])) self.assertEqual(1, len([line for line in line_list if line.isDataLine()]))
self.assertEqual(str(line_list[-1].getColumnProperty('getTranslatedMessage')), if six.PY2:
"Attribute title should be of type string but is of type <type 'int'>") self.assertEqual(
str(line_list[-1].getColumnProperty('getTranslatedMessage')),
"Attribute title should be of type string but is of type <type 'int'>")
else:
self.assertEqual(
str(line_list[-1].getColumnProperty('getTranslatedMessage')),
"Attribute title should be of type string but is of type <class 'int'>")
# this alarm can solve, as long as the constraints can solve, this is the # this alarm can solve, as long as the constraints can solve, this is the
# case of PropertyTypeValidity # case of PropertyTypeValidity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment