Changeset 6719 for TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py
- Timestamp:
- 11/03/10 09:29:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/unit/attributeauthority/test_attributeauthority.py
r6686 r6719 29 29 CaseSensitiveConfigParser) 30 30 from ndg.security.server.attributeauthority import (AttributeAuthority, 31 SQLAlchemyAttributeInterface, InvalidAttributeFormat )31 SQLAlchemyAttributeInterface, InvalidAttributeFormat, AttributeInterface) 32 32 33 33 from ndg.saml.saml2.core import (Response, Attribute, SAMLVersion, Subject, … … 54 54 self.assert_(aa.issuerName == cls.ISSUER_NAME) 55 55 56 def test02FromProperti s(self):56 def test02FromProperties(self): 57 57 58 58 # Casts from string to float 59 59 assertionLifetime = "86400" 60 60 issuerName = 'My issuer' 61 attributeInterfaceClassName = ('ndg.security.server.attributeauthority.' 62 'AttributeInterface') 63 61 64 aa = AttributeAuthority.fromProperties(issuerName=issuerName, 62 assertionLifetime=assertionLifetime) 65 assertionLifetime=assertionLifetime, 66 attributeInterface_className=attributeInterfaceClassName) 67 63 68 self.assert_(aa) 64 69 self.assert_(aa.assertionLifetime == float(assertionLifetime)) 65 70 self.assert_(aa.issuerName == issuerName) 71 self.assert_(isinstance(aa.attributeInterface, AttributeInterface)) 66 72 67 73
Note: See TracChangeset
for help on using the changeset viewer.