This commit is contained in:
Jesper Noehr 2009-05-13 13:32:03 +02:00
Родитель ee538ae5d0
Коммит 32f9c08a90
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -67,7 +67,7 @@ class IncomingExpressiveTests(MainTests):
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"}]'
@ -96,7 +96,7 @@ class IncomingExpressiveTests(MainTests):
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