aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/python_moonclient/tests/unit_python/test_models.py
diff options
context:
space:
mode:
authorRHE <rebirthmonkey@gmail.com>2017-12-21 14:46:22 +0100
committerThomas Duval <thomas.duval@orange.com>2017-12-21 16:43:47 +0100
commit81fdf943b75f54e885c047503c8ba57dfd6587df (patch)
tree3577fbde6a34b9139ae2079ccbf842a7f11329d6 /moonv4/python_moonclient/tests/unit_python/test_models.py
parent7a35259d6c4a710433a9eb5ee4d29797f1516d4b (diff)
python_moonclient stable
Change-Id: Ida295ffbe727275916bb80924d275771b592fbb5 Signed-off-by: RHE <rebirthmonkey@gmail.com>
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)
+
+