Damien Baty <damien.b...@gmail.com> added the comment:

and a (minimal) test.

----------
status: unread -> chatting

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue90>
__________________________________
Index: tests.py
===================================================================
--- tests.py	(révision 5222)
+++ tests.py	(copie de travail)
@@ -263,6 +263,12 @@
         middleware = self._makeOne(mock_app)
         result = middleware(request.environ, start_response)
 
+    def test_quality(self):
+        ## Mimic Paste Deploy's behaviour, which pass parameters as
+        ## strings
+        middleware = self._makeOne(None, quality='10')
+        f = middleware.process(StringIO(jpeg_image_data), (32, 32))
+
 jpeg_image_data = base64.decodestring("""\
 /9j/4AAQSkZJRgABAQEASABIAAD/4gPwSUNDX1BST0ZJTEUAAQEAAAPgYXBwbAIAAABtbnRyUkdC
 IFhZWiAH1gAFABcADwALAAthY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAA
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to