Salome HOME
Done in the frames of python dump issue #1648 : allow user to rename results without...
[modules/shaper.git] / src / ExchangePlugin / Test / TestImport.py
index 0dbffdea69f9e85dd709510b5f1f7b8f96838365..55e805cd538f34f563dff5f1ba22a50376502db0 100644 (file)
@@ -73,7 +73,7 @@ def testImportXAO():
     aSelectionList = aFeature1.selectionList("group_list")
     assert aSelectionList.selectionType() == "solid"
     assert aSelectionList.size() == 1
-    assert aSelectionList.value(0).namingName("") == "mygeom_1_1"
+    assert aSelectionList.value(0).namingName("") == "mygeom_1"
 
     aFeature2 = aCompositeFeature.subFeature(1, False)
     assert aFeature2.getKind() == "Group"
@@ -82,8 +82,9 @@ def testImportXAO():
     aSelectionList = aFeature2.selectionList("group_list") 
     assert aSelectionList.selectionType() == "face"
     assert aSelectionList.size() == 2
-    assert aSelectionList.value(0).namingName("") == "mygeom_1/Shape1_1"
-    assert aSelectionList.value(1).namingName("") == "mygeom_1/Shape2_1"
+    assert aSelectionList.value(0).namingName("") == "mygeom_1/Shape1"
+    print aSelectionList.value(1).namingName("")
+    assert aSelectionList.value(1).namingName("") == "mygeom_1/Shape2"
 
 if __name__ == '__main__':
 #=========================================================================