@temprepo('simple')
- def test_document_text_update(self):
+ def test_document_text_save(self):
self.assertTrue(self.client.login(username='admin', password='admin'))
TEXT = u"Ala ma kota i psa"
resp = self.assert_json_response()
- self.response = self.client.put(resp['text_url'], {'contents': TEXT })
+ self.response = self.client.post(resp['text_url'], {
+ 'revision': resp['user_revision'] ,'contents': TEXT })
result = self.assert_json_response(must_have={u'document': u'sample'} )
#self.response = self.client.get(result['url'])