diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-08 13:45:05 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-08 13:45:05 +0200 |
| commit | 19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3 (patch) | |
| tree | cc018b121b7b6965f3cb9ab2dc57c8ec01090fb3 /budget/tests.py | |
| parent | 48bc551853b8b0067cdaeef98b3e454c3249f98f (diff) | |
| download | ihatemoney-mirror-19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3.zip ihatemoney-mirror-19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3.tar.gz ihatemoney-mirror-19ae3ab3b2af98c5e39e8a73dc9b5d973dda5aa3.tar.bz2 | |
merge with master
Diffstat (limited to 'budget/tests.py')
| -rw-r--r-- | budget/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/budget/tests.py b/budget/tests.py index 1541cbb..2b573f4 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -410,7 +410,8 @@ class APITestCase(TestCase): resp = self.api_create("raclette") self.assertTrue(400, resp.status_code) - self.assertEqual('{"id": ["This project id is already used"]}', resp.data) + self.assertIn('id', json.loads(resp.data)) + # get information about it resp = self.app.get("/api/projects/raclette", headers=self.get_auth("raclette")) |
