Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Added testcase for #17
Browse files Browse the repository at this point in the history
  • Loading branch information
toirl committed Jun 14, 2016
1 parent 1b9b305 commit f38a926
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ringo/tests/functional/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f38a926

Please sign in to comment.