summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-01-21 11:42:12 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2018-01-21 11:42:12 +0100
commit96a1a784bd0cc0d0ce9dc3a83ea3a46380adc905 (patch)
treefd800cb6087d79069a7688ce4c41d51ec27ead3f /tools/python_test_v4.py
parent08f19b3d79dd50bab5afe58fe1b3b3825ddf9c25 (diff)
downloadgitlab-96a1a784bd0cc0d0ce9dc3a83ea3a46380adc905.tar.gz
Add support for getting list of user projects
Fixes #403
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index 69596b8..e5d390a 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -92,6 +92,9 @@ assert(new_user.email == user.email)
new_user.block()
new_user.unblock()
+# user projects list
+assert(len(new_user.projects.list()) == 0)
+
foobar_user = gl.users.create(
{'email': 'foobar@example.com', 'username': 'foobar',
'name': 'Foo Bar', 'password': 'foobar_password'})