diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-03-02 11:52:33 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-03-02 11:52:33 +0300 |
commit | 007fcfc19303caa80484dace5dba2a0af78aaf51 (patch) | |
tree | 91504606947c99bcea3add7739f7100269e91ca6 /tests/python | |
parent | a65af5d0cf63c0cbd7542e2c9f02867ae4dafb7a (diff) |
Fixup for layer rename unittest (rB3baa186724)
Diffstat (limited to 'tests/python')
-rw-r--r-- | tests/python/render_layer/test_collection_rename.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/python/render_layer/test_collection_rename.py b/tests/python/render_layer/test_collection_rename.py index b79c33725b8..91da7bfd633 100644 --- a/tests/python/render_layer/test_collection_rename.py +++ b/tests/python/render_layer/test_collection_rename.py @@ -45,7 +45,6 @@ class UnitTesting(RenderLayerTesting): family['grandma'].name = family['grandpa'].name self.assertNotEqual(family['grandma'].name, family['grandpa'].name) - def test_rename_c(self): family = self.setup_family() @@ -58,11 +57,17 @@ class UnitTesting(RenderLayerTesting): family['son'].name = family['daughter'].name self.assertNotEqual(family['son'].name, family['daughter'].name) - def test_add_equal_name(self): + def test_add_equal_name_a(self): family = self.setup_family() - family['mom'].collections.new('daughter') - self.assertNotEqual(family['mom'].name, family['daughter'].name) + other_daughter = family['mom'].collections.new(family['daughter'].name) + self.assertNotEqual(other_daughter.name, family['daughter'].name) + + def test_add_equal_name_b(self): + family = self.setup_family() + + other_aunt = family['grandma'].collections.new(family['daughter'].name) + self.assertNotEqual(other_aunt.name, family['daughter'].name) # ############################################################ |