Example #1
0
 def test_attribute_not_found(self):
     with self.assertRaises(exc.AttributeNotFound):
         core.attribute("does_not_exist", server=config.server, cred=config.cred)
Example #2
0
 def test_one_attribute(self):
     attribute = core.attribute("displayName", server=config.server, cred=config.cred)
     self.assertEquals(attribute.ldapDisplayName, "displayName")
     self.assertTrue(attribute.Class == "attributeSchema")