mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
tests: AdisTS: Add open MassZero study test.
This commit is contained in:
1 parent
072840a18c
commit
084223037c
1 file changed
+6
@@ -89,6 +89,12 @@ class StudyScenarioTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(study.name, "Enlargement")
|
self.assertEqual(study.name, "Enlargement")
|
||||||
self.assertEqual(study.status.scenario_id, 0)
|
self.assertEqual(study.status.scenario_id, 0)
|
||||||
|
|
||||||
|
def test_open_study_2(self):
|
||||||
|
study = Study.open("../tests_cases/MassZero/TestMultibiefs.pamhyr")
|
||||||
|
self.assertNotEqual(study, None)
|
||||||
|
self.assertEqual(study.name, "TestMultibiefs")
|
||||||
|
self.assertEqual(study.status.scenario_id, 0)
|
||||||
|
|
||||||
def test_save_open_study(self):
|
def test_save_open_study(self):
|
||||||
study = Study.new("foo", "bar")
|
study = Study.new("foo", "bar")
|
||||||
new = study.new_scenario_from_current()
|
new = study.new_scenario_from_current()
|
||||||
|
|||||||
Reference in new issue
Block a user