Commits

Jesper Nøhr  committed 5cc29cf

updating tests to comply with #38

  • Participants
  • Parent commits 9f69e83

Comments (0)

Files changed (1)

File tests/test_project/apps/testapp/tests.py

         resp = self.client.post('/api/expressive.json', outgoing, content_type='application/json',
             HTTP_AUTHORIZATION=self.auth_string)
             
-        self.assertEquals(resp.status_code, 200)
+        self.assertEquals(resp.status_code, 201)
         
         expected = '[{"content": "bar", "comments": [], "title": "foo"}, {"content": "bar2", "comments": [], "title": "foo2"}, {"content": "test", "comments": [{"content": "test1"}, {"content": "test2"}], "title": "test"}]'
         
         resp = self.client.post('/api/expressive.json', outgoing, content_type='application/x-yaml',
             HTTP_AUTHORIZATION=self.auth_string)
         
-        self.assertEquals(resp.status_code, 200)
+        self.assertEquals(resp.status_code, 201)
         
         expected = """- comments: []
   content: bar