etwist/test/unittest_server.py
changeset 8752 e19f4bba89cd
parent 8298 2a4bc6f75e9c
child 9533 fa4051e29fbe
--- a/etwist/test/unittest_server.py	Thu Jan 17 14:55:07 2013 +0100
+++ b/etwist/test/unittest_server.py	Tue Mar 12 12:34:07 2013 +0100
@@ -19,6 +19,7 @@
 import os, os.path as osp, glob
 
 from cubicweb.devtools.testlib import CubicWebTC
+from cubicweb.devtools.httptest import CubicWebServerTC
 from cubicweb.etwist.server import host_prefixed_baseurl
 
 
@@ -53,6 +54,13 @@
         self._check('http://localhost:8080/hg/', 'code.cubicweb.org',
                     'http://localhost:8080/hg/')
 
+
+class ETwistHTTPTC(CubicWebServerTC):
+    def test_put_content(self):
+        body = 'hop'
+        response = self.web_request('?vid=put', method='PUT', body=body)
+        self.assertEqual(body, response.body)
+
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()