aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/api_containers.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/api_containers.py')
-rw-r--r--python/tests/api_containers.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/tests/api_containers.py b/python/tests/api_containers.py
index ad6d03be..47825ed5 100644
--- a/python/tests/api_containers.py
+++ b/python/tests/api_containers.py
@@ -39,6 +39,16 @@ def test_container(api):
assert c2.revision == c2_rev.revision
assert c2.name == c2_rev.name
+ # get redirects (none)
+ assert api.get_container_redirects(c2.ident) == []
+
+ # delete
+ eg = quick_eg(api)
+ api.delete_container(c2.ident, editgroup_id=eg.editgroup_id)
+ api.accept_editgroup(eg.editgroup_id)
+ c2 = api.get_container(c2.ident)
+ assert c2.state == "deleted"
+
def test_container_examples(api):
c1 = api.get_container('aaaaaaaaaaaaaeiraaaaaaaaam')