[IMP]: Improve test case

bzr revid: pan@tinyerp.com-20130204125642-fyf2r3uubk16md4t
This commit is contained in:
Anand Patel (OpenERP)
2013-02-04 18:26:42 +05:30
parent a52d21e1cb
commit 8f91937bab
@@ -393,18 +393,14 @@ class test_required_string_field(ImporterCase):
def test_empty(self):
result = self.import_(['value'], [[]])
self.assertEqual(result['messages'], [message(
u"Missing required value for the field 'value'. This might be "
u"'unknown' in the current model, or a field of the same name in "
u"an o2m.")])
u"Missing required value for the field 'unknown'")])
self.assertIs(result['ids'], False)
@mute_logger('openerp.sql_db', 'openerp.osv.orm')
def test_not_provided(self):
result = self.import_(['const'], [['12']])
self.assertEqual(result['messages'], [message(
u"Missing required value for the field 'value'. This might be "
u"'unknown' in the current model, or a field of the same name in "
u"an o2m.")])
u"Missing required value for the field 'unknown'")])
self.assertIs(result['ids'], False)
class test_text(ImporterCase):