Browse Source

Add one more unit test

Yentl Van Tendeloo 7 years ago
parent
commit
38396c70d4
2 changed files with 26 additions and 11 deletions
  1. 25 10
      unit/test_all.py
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 25 - 10
unit/test_all.py

@@ -134,11 +134,35 @@ class TestModelverse(unittest.TestCase):
                                                  "Bottom",
                                                  "Bottom",
                                                 ])
                                                 ])
 
 
+    def test_op_model_list_full(self):
+        assert model_list_full("") == set([("formalisms/", "admin", "admin", "221"),
+                                           ("models/", "admin", "admin", "221"),
+                                           ("administration/", "admin", "admin", "110"),
+                                           ("type mappings/", "admin", "admin", "221"),
+                                           ("users/", "admin", "admin", "221"),
+                                           ("test/", "admin", "nobody", "200"),
+                                          ])
+        assert model_list_full("formalisms") == set([("SimpleClassDiagrams", "admin", "admin", "221"),
+                                                     ("ActionLanguage", "admin", "admin", "221"),
+                                                     ("TypeMapping", "admin", "admin", "221"),
+                                                     ("Tracability", "admin", "admin", "221"),
+                                                     ("ProcessModel", "admin", "admin", "221"),
+                                                     ("ManualOperation", "admin", "admin", "221"),
+                                                     ("Bottom", "admin", "admin", "221"),
+                                                    ])
+        assert model_list_full("formalisms/") == set([("SimpleClassDiagrams", "admin", "admin", "221"),
+                                                      ("ActionLanguage", "admin", "admin", "221"),
+                                                      ("TypeMapping", "admin", "admin", "221"),
+                                                      ("Tracability", "admin", "admin", "221"),
+                                                      ("ProcessModel", "admin", "admin", "221"),
+                                                      ("ManualOperation", "admin", "admin", "221"),
+                                                      ("Bottom", "admin", "admin", "221"),
+                                                     ])
+
     """
     """
     def test_op_model_add(self):
     def test_op_model_add(self):
     def test_op_model_move(self):
     def test_op_model_move(self):
     def test_op_model_delete(self):
     def test_op_model_delete(self):
-    def test_op_model_list_full(self):
     def test_op_verify(self):
     def test_op_verify(self):
     def test_op_model_overwrite(self):
     def test_op_model_overwrite(self):
     def test_op_user_delete(self):
     def test_op_user_delete(self):
@@ -190,15 +214,6 @@ class TestModelverse(unittest.TestCase):
     def test_op_all_instances(self):
     def test_op_all_instances(self):
     """
     """
 
 
-    def test_list_full(self):
-        assert model_list_full("") == set([("formalisms/", "admin", "admin", "221"),
-                                           ("models/", "admin", "admin", "221"),
-                                           ("administration/", "admin", "admin", "110"),
-                                           ("type mappings/", "admin", "admin", "221"),
-                                           ("users/", "admin", "admin", "221"),
-                                           ("test/", "admin", "nobody", "200"),
-                                          ])
-
     def test_modelling(self):
     def test_modelling(self):
         # Add a model
         # Add a model
         model_add("test/Empty", "formalisms/SimpleClassDiagrams")
         model_add("test/Empty", "formalisms/SimpleClassDiagrams")

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
-Date:   Tue Jun  5 15:29:11 2018
+Date:   Tue Jun  5 15:43:17 2018
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server