fixture_add_user: Factoring a unit test tool
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 1 Dec 2011 22:33:47 +0000 (23:33 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 1 Dec 2011 22:33:47 +0000 (23:33 +0100)
commit9754802d4bca036b8fb0b50db948dd2eb8f64bd6
treef641c782ec9381fa075d80cf9d8e86f0a4c6095e
parent72567762e36c849ffe8172b6cea4ca1be682e511
fixture_add_user: Factoring a unit test tool

Some unit tests need a user in the database, especially to
act as that user.  Some routines did that on their own.  So
factored this whole thing into a new function and use it
around.
mediagoblin/tests/test_auth.py
mediagoblin/tests/test_edit.py
mediagoblin/tests/test_submission.py
mediagoblin/tests/tools.py