From f38a926c682d523f531b91272ecdcc642c3b02ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20Irl=C3=A4nder?= Date: Tue, 14 Jun 2016 12:02:39 +0200 Subject: [PATCH] Added testcase for #17 --- ringo/tests/functional/test_user.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ringo/tests/functional/test_user.py b/ringo/tests/functional/test_user.py index b8033537..33487099 100644 --- a/ringo/tests/functional/test_user.py +++ b/ringo/tests/functional/test_user.py @@ -44,6 +44,10 @@ def test_POST(self, app): login(app, "admin", "secret") transaction_begin(app) create_user(app, "test") + udata = search_data(app, "users", "login", "test") + gdata = search_data(app, "usergroups", "name", "test") + # Check that the default_gid is set to the users usergroup + assert gdata.get("id") == udata.get("default_gid") transaction_rollback(app) def test_POST_password_tooshort(self, app):