[TEST] incorrect value for selection field import

bzr revid: xmo@openerp.com-20120730153017-iywveudrq5h0ykef
This commit is contained in:
Xavier Morel 2012-07-30 17:30:17 +02:00
parent 5b5148b925
commit 496177a9b1
1 changed files with 5 additions and 0 deletions

View File

@ -326,6 +326,11 @@ class test_selection(ImporterCase):
error(1, "Key/value 'Baz' not found in selection field 'value'",
# what the fuck?
value=False))
self.cr.rollback()
self.assertEqual(
self.import_(['value'], [[42]]),
error(1, "Key/value '42' not found in selection field 'value'",
value=False))
class test_selection_function(ImporterCase):
model_name = 'export.selection.function'