Salome HOME
Merge master branch into V9_dev
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributePythonObject.cxx
index 774aa09ab167e1173ecfa6228e1b9abf52ccbc30..1e8bbed750bc3f1c097d4a64de8d00337c38a09b 100755 (executable)
  */
 void SALOMEDSTest::testAttributePythonObject()
 {
-  //Create or find the Study manager
-  _PTR(StudyManager) sm ( new SALOMEDS_StudyManager(_sm) );
-
-  CPPUNIT_ASSERT(sm);
-
-  //Create a new study
-  _PTR(Study) study = sm->NewStudy("Test");
+  //Create Study
+  _PTR(Study) study(new SALOMEDS_Study(_study));
 
   CPPUNIT_ASSERT(study);
 
@@ -69,7 +64,7 @@ void SALOMEDSTest::testAttributePythonObject()
   _attr->SetObject("", true);
   CPPUNIT_ASSERT(_attr->GetObject() == "" && _attr->IsScript());
 
-  sm->Close(study);
+  study->Clear();
 }