[ADD] test for retarded behavior when importing o2m _rec_name
bzr revid: xmo@openerp.com-20120906153941-qynzx3minrxpz82t
This commit is contained in:
parent
8a48914a5c
commit
1e834fb029
|
@ -716,6 +716,15 @@ class test_m2m(ImporterCase):
|
|||
class test_o2m(ImporterCase):
|
||||
model_name = 'export.one2many'
|
||||
|
||||
def test_name_get(self):
|
||||
# FIXME: bloody hell why can't this just name_create the record?
|
||||
self.assertRaises(
|
||||
IndexError,
|
||||
self.import_,
|
||||
['const', 'value'],
|
||||
[['5', u'Java is a DSL for taking large XML files'
|
||||
u' and converting them to stack traces']])
|
||||
|
||||
def test_single(self):
|
||||
self.assertEqual(
|
||||
self.import_(['const', 'value/value'], [
|
||||
|
|
Loading…
Reference in New Issue