|
@@ -1439,3 +1439,96 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
"Transformation executed with result: True",
|
|
|
"Ready for command...",
|
|
|
]))
|
|
|
+
|
|
|
+ def test_powerwindow(self):
|
|
|
+ self.assertTrue(run_file(all_files,
|
|
|
+ [ "root", "root", "root",
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "Control_PW",
|
|
|
+ ] + get_model_constructor(open("models/control_PW.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "Environment_PW",
|
|
|
+ ] + get_model_constructor(open("models/environment_PW.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "Description_PW",
|
|
|
+ ] + get_model_constructor(open("models/description_PW.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "Control_PW",
|
|
|
+ "control_model",
|
|
|
+ ] + get_model_constructor(open("models/control_model.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "Environment_PW",
|
|
|
+ "environment_model",
|
|
|
+ ] + get_model_constructor(open("models/environment_model.mvc", "r").read()) + [
|
|
|
+ "model_add",
|
|
|
+ "Description_PW",
|
|
|
+ "description_model",
|
|
|
+ ] + get_model_constructor(open("models/description_model.mvc", "r").read()) + [
|
|
|
+ "model_list",
|
|
|
+ ],
|
|
|
+ [ # bootup phase
|
|
|
+ "Desired username for admin user?",
|
|
|
+ "Desired password for admin user?",
|
|
|
+ "Please repeat the password",
|
|
|
+ "Passwords match!",
|
|
|
+ "Welcome to the Model Management Interface v2.0!",
|
|
|
+ "Use the 'help' command for a list of possible commands",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_add
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ # model_list
|
|
|
+ set([" SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " ActionLanguage : SimpleClassDiagrams",
|
|
|
+ " CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " Control_PW : SimpleClassDiagrams",
|
|
|
+ " Environment_PW : SimpleClassDiagrams",
|
|
|
+ " Description_PW : SimpleClassDiagrams",
|
|
|
+ " control_model : Control_PW",
|
|
|
+ " environment_model : Environment_PW",
|
|
|
+ " description_model : Description_PW",
|
|
|
+ " core : CoreFormalism"]),
|
|
|
+ "Ready for command...",
|
|
|
+ ]))
|