Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/units/db/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/db/routes.py')
-rwxr-xr-xtests/units/db/routes.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/units/db/routes.py b/tests/units/db/routes.py
index 5786760..24499d4 100755
--- a/tests/units/db/routes.py
+++ b/tests/units/db/routes.py
@@ -460,6 +460,15 @@ class RoutesTest(tests.Test):
self.assertEqual('200 OK', response[0])
self.assertEqual('foo', dict(response[1]).get('content-type'))
+ this.call(method='PUT', path=['testdocument', guid], content={'blob': 'blob2'}, content_type='bar')
+ response = []
+ [i for i in router({
+ 'REQUEST_METHOD': 'GET',
+ 'PATH_INFO': '/testdocument/%s/blob' % guid,
+ }, lambda status, headers: response.extend([status, headers]))]
+ self.assertEqual('200 OK', response[0])
+ self.assertEqual('default', dict(response[1]).get('content-type'))
+
def test_GetBLOBs(self):
class TestDocument(db.Resource):