aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/python_moonclient/tests/unit_python/test_models.py
diff options
context:
space:
mode:
authorRuan HE <ruan.he@orange.com>2017-12-21 22:41:58 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-21 22:41:58 +0000
commitea5ea2b583889feb830cfd10b19151e1755e2154 (patch)
tree36bfa4120926a0eb550fe0ea7b936cb79a9239fc /moonv4/python_moonclient/tests/unit_python/test_models.py
parent33628e6f9a4e4b9e22d4b02e931663de41107050 (diff)
parent81fdf943b75f54e885c047503c8ba57dfd6587df (diff)
Merge "python_moonclient stable"
Diffstat (limited to 'moonv4/python_moonclient/tests/unit_python/test_models.py')
-rw-r--r--moonv4/python_moonclient/tests/unit_python/test_models.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/moonv4/python_moonclient/tests/unit_python/test_models.py b/moonv4/python_moonclient/tests/unit_python/test_models.py
new file mode 100644
index 00000000..f708c6e4
--- /dev/null
+++ b/moonv4/python_moonclient/tests/unit_python/test_models.py
@@ -0,0 +1,37 @@
+from python_moonclient.models import *
+
+
+def test_models():
+ check_model()
+ model_id = add_model()
+ check_model(model_id)
+ delete_model(model_id)
+
+
+def test_meta_data_subject():
+ category_id = add_subject_category()
+ check_subject_category(category_id)
+ # TODO (asteroide): must implement the deletion of linked data
+ # delete_subject_category(category_id)
+
+
+def test_meta_data_object():
+ category_id = add_object_category()
+ check_object_category(category_id)
+ # TODO (asteroide): must implement the deletion of linked data
+ # delete_object_category(category_id)
+
+
+def test_meta_data_action():
+ category_id = add_action_category()
+ check_action_category(category_id)
+ # TODO (asteroide): must implement the deletion of linked data
+ # delete_action_category(category_id)
+
+
+def test_meta_rule():
+ meta_rule_id, scat_id, ocat_id, acat_id = add_categories_and_meta_rule()
+ check_meta_rule(meta_rule_id, scat_id, ocat_id, acat_id)
+ delete_meta_rule(meta_rule_id)
+
+