Changeset 5973 for TI12-security/trunk/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py
- Timestamp:
- 05/11/09 17:14:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py
r5971 r5973 240 240 "Check the .msg files in this directory") 241 241 242 243 from warnings import warn 242 244 243 245 class SQLAlchemyAttributeInterfaceTestCase(BaseTestCase): 244 246 def __init__(self, *arg, **kw): 245 247 super(SQLAlchemyAttributeInterfaceTestCase, self).__init__(*arg, **kw) 248 self.skipTests = False 246 249 try: 247 250 self._createDb() 251 248 252 except NotImplementedError: 249 pass250 251 def setUp(self):252 pass253 # Don't proceed with tests because SQLAlchemy is not installed 254 warn("Skipping SQLAlchemyAttributeInterfaceTestCase because " 255 "SQLAlchemy is not installed") 256 self.skipTests = True 253 257 254 258 def test01(self): 259 if self.skipTests: 260 return 261 255 262 attributeInterface = SQLAlchemyAttributeInterface() 263 attributeInterface.samlAttribute2SqlQueryMap_firstName = 'Philip' 264 setattr(attributeInterface, 'samlAttribute2SqlQueryMap.lastName', 265 'Kershaw') 266 attributeInterface.samlAttribute2SqlQueryMap['emailAddress'] = ('pjk' 267 '@somewhere.ac.uk') 268 256 269 257 270 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.