浏览代码

First working test for MvC

Yentl Van Tendeloo 8 年之前
父节点
当前提交
cb97644014
共有 1 个文件被更改,包括 12 次插入4 次删除
  1. 12 4
      integration/test_mvc.py

+ 12 - 4
integration/test_mvc.py

@@ -21,12 +21,20 @@ all_files = [   "core/mini_modify.alc",
             ]
 
 class TestModelverseCore(unittest.TestCase):
-    def test_po_init_admin(self):
-        self.init_admin("PO")
+    def test_po_list(self):
+        self.list("PO")
 
-    def init_admin(self, mode):
+    def list(self, mode):
         self.assertTrue(run_file(all_files,
             [ "root",
+                "model_list",
+            ],
+            [   "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(["  SimpleClassDiagrams : SimpleClassDiagrams",
+                     "  CoreFormalism : SimpleClassDiagrams",
+                     "  core : CoreFormalism"]),
             ],
-            None,
             mode))