diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-09-14 14:50:54 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-09-14 14:50:54 +0200 |
| commit | 1b8258a52110cd8eac2f2012e99cf6c16153a839 (patch) | |
| tree | 8cb3610c85c74fc95bd53c6a48b5f3213505f910 | |
| parent | b0d41291afade8aec86502d07d1d29d000ff1bca (diff) | |
| download | ihatemoney-mirror-1b8258a52110cd8eac2f2012e99cf6c16153a839.zip ihatemoney-mirror-1b8258a52110cd8eac2f2012e99cf6c16153a839.tar.gz ihatemoney-mirror-1b8258a52110cd8eac2f2012e99cf6c16153a839.tar.bz2 | |
Add a test for #23
| -rw-r--r-- | budget/tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/budget/tests.py b/budget/tests.py index db37e46..96ed042 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -186,6 +186,15 @@ class BudgetTestCase(TestCase): self.assertEqual( len(models.Project.query.get("raclette").active_members), 2) + # adding an user with the same name as another user from a different + # project should not cause any troubles + self.post_project("randomid") + self.login("randomid") + self.app.post("/randomid/members/add", data={'name': 'fred' }) + self.assertEqual( + len(models.Project.query.get("randomid").active_members), 1) + + def test_demo(self): # Test that it is possible to connect automatically by going onto /demo with run.app.test_client() as c: |
