test_mvc.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import unittest
  2. from utils import run_file, get_constructor, get_model_constructor
  3. all_files = [ "core/mini_modify.alc",
  4. "core/core_formalism.mvc",
  5. "core/core_algorithm.alc",
  6. "primitives.alc",
  7. "object_operations.alc",
  8. "conformance_scd.alc",
  9. "library.alc",
  10. "ftg.alc",
  11. "transform.alc",
  12. "model_management.alc",
  13. "ramify.alc",
  14. "metamodels.alc",
  15. "random.alc",
  16. "constructors.alc",
  17. "modelling.alc",
  18. "compilation_manager.alc",
  19. ]
  20. class TestModelverseCore(unittest.TestCase):
  21. def test_po_list(self):
  22. self.list("PO")
  23. def list(self, mode):
  24. self.assertTrue(run_file(all_files,
  25. [ "root",
  26. "model_list",
  27. ],
  28. [ "Desired username for admin user?",
  29. "Welcome to the Model Management Interface v2.0!",
  30. "Use the 'help' command for a list of possible commands",
  31. "Ready for command...",
  32. set([" SimpleClassDiagrams : SimpleClassDiagrams",
  33. " CoreFormalism : SimpleClassDiagrams",
  34. " core : CoreFormalism"]),
  35. ],
  36. mode))