|
@@ -38,3 +38,56 @@ class TestModelverseCore(unittest.TestCase):
|
|
|
" core : CoreFormalism"]),
|
|
|
],
|
|
|
mode))
|
|
|
+
|
|
|
+ def test_po_list_full(self):
|
|
|
+ self.list_full("PO")
|
|
|
+
|
|
|
+ def list_full(self, mode):
|
|
|
+ self.assertTrue(run_file(all_files,
|
|
|
+ [ "root",
|
|
|
+ "model_list_full",
|
|
|
+ ],
|
|
|
+ [ "Desired username for admin user?",
|
|
|
+ "Welcome to the Model Management Interface v2.0!",
|
|
|
+ "Use the 'help' command for a list of possible commands",
|
|
|
+ "Ready for command...",
|
|
|
+ set([" 221 root admin 673 SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " 221 root admin 86 CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " 200 root admin 43 core : CoreFormalism"]),
|
|
|
+ ],
|
|
|
+ mode))
|
|
|
+
|
|
|
+ def test_po_model_add_empty(self):
|
|
|
+ self.model_add_empty("PO")
|
|
|
+
|
|
|
+ def model_add_empty(self, mode):
|
|
|
+ self.assertTrue(run_file(all_files,
|
|
|
+ [ "root",
|
|
|
+ "model_add",
|
|
|
+ "SimpleClassDiagrams",
|
|
|
+ "Empty",
|
|
|
+ "exit",
|
|
|
+ "model_list",
|
|
|
+ "model_list_full",
|
|
|
+ ],
|
|
|
+ [ "Desired username for admin user?",
|
|
|
+ "Welcome to the Model Management Interface v2.0!",
|
|
|
+ "Use the 'help' command for a list of possible commands",
|
|
|
+ "Ready for command...",
|
|
|
+ "Creating new model!",
|
|
|
+ "Model type?",
|
|
|
+ "Model name?",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Model upload success!",
|
|
|
+ "Ready for command...",
|
|
|
+ set([" SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " Empty : SimpleClassDiagrams",
|
|
|
+ " core : CoreFormalism"]),
|
|
|
+ "Ready for command...",
|
|
|
+ set([" 221 root admin 673 SimpleClassDiagrams : SimpleClassDiagrams",
|
|
|
+ " 221 root admin 86 CoreFormalism : SimpleClassDiagrams",
|
|
|
+ " 200 root nobody 0 Empty : SimpleClassDiagrams",
|
|
|
+ " 200 root admin 53 core : CoreFormalism"]),
|
|
|
+ ],
|
|
|
+ mode))
|