diff tests/test.py @ 64:bb8d993376aa

* convenience methods for multipart form * include this in test globals
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 18:15:34 -0800
parents af1476a936fc
children 83327bc715be
line wrap: on
line diff
--- a/tests/test.py	Thu Mar 01 16:57:00 2012 -0800
+++ b/tests/test.py	Thu Mar 01 18:15:34 2012 -0800
@@ -9,6 +9,7 @@
 # http://pythonpaste.org/testing-applications.html
 
 import doctest
+import multipart
 import os
 import shutil
 import sys
@@ -35,7 +36,9 @@
     directory = os.path.dirname(os.path.abspath(__file__))
     extraglobs = {'here': directory,
                   'create_virtualenv': create_virtualenv,
-                  'testserver': testserver.TestWSGIServer }
+                  'testserver': testserver.TestWSGIServer,
+                  'MultiPartForm': multipart.MultiPartForm
+                  }
     doctest_args = dict(extraglobs=extraglobs, raise_on_error=raise_on_error)
     if report_first:
         doctest_args['optionflags'] = doctest.REPORT_ONLY_FIRST_FAILURE