{"action":"opened","issue":{"url":"https://api.github.com/repos/fairdemocracy/vilfredo-core/issues/72","labels_url":"https://api.github.com/repos/fairdemocracy/vilfredo-core/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/fairdemocracy/vilfredo-core/issues/72/comments","events_url":"https://api.github.com/repos/fairdemocracy/vilfredo-core/issues/72/events","html_url":"https://github.com/fairdemocracy/vilfredo-core/issues/72","id":66173583,"number":72,"title":"Python Test fails","user":{"login":"verdecchia","id":169332,"avatar_url":"https://avatars.githubusercontent.com/u/169332?v=3","gravatar_id":"","url":"https://api.github.com/users/verdecchia","html_url":"https://github.com/verdecchia","followers_url":"https://api.github.com/users/verdecchia/followers","following_url":"https://api.github.com/users/verdecchia/following{/other_user}","gists_url":"https://api.github.com/users/verdecchia/gists{/gist_id}","starred_url":"https://api.github.com/users/verdecchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verdecchia/subscriptions","organizations_url":"https://api.github.com/users/verdecchia/orgs","repos_url":"https://api.github.com/users/verdecchia/repos","events_url":"https://api.github.com/users/verdecchia/events{/privacy}","received_events_url":"https://api.github.com/users/verdecchia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-03T15:53:46Z","updated_at":"2015-04-03T15:53:46Z","closed_at":null,"body":"I'm installing vilfredo-core following the readme.rst (docs/source/readme.rst).\r\nWhen I execute the \"python manage.py test\", test_api.py fail at row 203.\r\n\r\nHere the complete log, hope it helps:\r\n\r\nwarning: no files found matching '*.rst'\r\nno previously-included directories found matching 'dist'\r\ntest_rest_api (VilfredoReloadedCore.test.test_api.RESTAPITestCase) ... \r\n--------------------------------------------------------------------------------\r\nDEBUG in test_api [/home/admin/vilfredo-core/VilfredoReloadedCore/test/test_api.py:60]:\r\nRunning tests on database sqlite:////var/db/vr.db\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\nDEBUG in test_api [/home/admin/vilfredo-core/VilfredoReloadedCore/test/test_api.py:68]:\r\nInitializing sqlite db\r\n\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\nDEBUG in api [/home/admin/vilfredo-core/VilfredoReloadedCore/api/v2/api.py:839]:\r\napi_create_user called...\r\n\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\nDEBUG in api [/home/admin/vilfredo-core/VilfredoReloadedCore/api/v2/api.py:841]:\r\nRequest {u'username': u'john', u'password': u'john123', u'email': u'john@example.com'}...\r\n\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\nDEBUG in test_api [/home/admin/vilfredo-core/VilfredoReloadedCore/test/test_api.py:203]:\r\nData retrieved from Create User = {\r\n  \"message\": \"Username not available\"\r\n}\r\n\r\n--------------------------------------------------------------------------------\r\nFAIL\r\n\r\n======================================================================\r\nFAIL: test_rest_api (VilfredoReloadedCore.test.test_api.RESTAPITestCase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/admin/vilfredo-core/VilfredoReloadedCore/test/test_api.py\", line 204, in test_rest_api\r\n    self.assertEqual(rv.status_code, 201)\r\nAssertionError: 400 != 201\r\n-------------------- >> begin captured logging << --------------------\r\nVilfredoReloadedCore: DEBUG: Running tests on database sqlite:////var/db/vr.db\r\nVilfredoReloadedCore: DEBUG: Initializing sqlite db\r\n\r\nVilfredoReloadedCore: DEBUG: api_create_user called...\r\n\r\nVilfredoReloadedCore: DEBUG: Request {u'username': u'john', u'password': u'john123', u'email': u'john@example.com'}...\r\n\r\nVilfredoReloadedCore: DEBUG: Data retrieved from Create User = {\r\n  \"message\": \"Username not available\"\r\n}\r\n\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n----------------------------------------------------------------------\r\nRan 1 test in 0.700s\r\n\r\nFAILED (failures=1)"}}