Changeset 6574 for TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/__init__.py
- Timestamp:
- 15/02/10 12:33:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/wsgi/saml/__init__.py
r6069 r6574 9 9 __contact__ = "Philip.Kershaw@stfc.ac.uk" 10 10 __revision__ = '$Id: $' 11 import unittest 12 import os 13 import paste.fixture 14 from paste.deploy import loadapp 15 16 17 class TestApp(object): 18 def __init__(self, global_conf, **app_conf): 19 pass 20 21 def __call__(self, environ, start_response): 22 response = "404 Not Found" 23 start_response(response, 24 [('Content-length', str(len(response))), 25 ('Content-type', 'text/plain')]) 26 27 return [response] 28 29 30 class SOAPAttributeInterfaceMiddlewareTestCase(unittest.TestCase): 31 HERE_DIR = os.path.dirname(os.path.abspath(__file__)) 32 CONFIG_FILENAME = 'test.ini' 33 34 def __init__(self, *args, **kwargs): 35 wsgiapp = loadapp( 36 'config:%s' % \ 37 SOAPAttributeInterfaceMiddlewareTestCase.CONFIG_FILENAME, 38 relative_to=SOAPAttributeInterfaceMiddlewareTestCase.HERE_DIR) 39 40 self.app = paste.fixture.TestApp(wsgiapp) 41 42 unittest.TestCase.__init__(self, *args, **kwargs)
Note: See TracChangeset
for help on using the changeset viewer.