Kaynağa Gözat

First working test for MvC

Yentl Van Tendeloo 8 yıl önce
ebeveyn
işleme
cb97644014
1 değiştirilmiş dosya ile 12 ekleme ve 4 silme
  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))