diff --git a/trytond/tests/test_mptt.py b/trytond/tests/test_mptt.py index 5cc3373f8e..f4a73e647f 100644 --- a/trytond/tests/test_mptt.py +++ b/trytond/tests/test_mptt.py @@ -181,6 +181,16 @@ class MPTTTestCase(unittest.TestCase): self.assertTrue(mock.called) + def test0070_nested_create(self): + with Transaction().start(DB_NAME, USER, context=CONTEXT): + record, = self.mptt.create([{ + 'name': 'Test nested create 1', + 'childs': [('create', [{ + 'name': 'Test nested create 1 1', + }])], + }]) + self.CheckTree() + def suite(): return unittest.TestLoader().loadTestsFromTestCase(MPTTTestCase)