Ejemplo n.º 1
0
 def test_set (self):
   _, username, _ = base.find_pattern (type_pattern="user")
   user1 = self.ou[username]
   x = str (uuid.uuid1 ())
   self.assertNotEquals (user1.displayName, x)
   self.assertNotEquals (user1.givenName, x)
   user1.set (displayName=x, givenName=x)
   self.assertEquals (user1.displayName, x)
   self.assertEquals (user1.givenName, x)
Ejemplo n.º 2
0
 def test_find_user (self):
   _, username, _ = base.find_pattern (type_pattern="user")
   qualifier, _, name = username.partition ("=")
   user = self.ou.find_user (name)
   self.assertTrue (user)
   self.assertEquals (username, user.Name)
Ejemplo n.º 3
0
 def setUp (self):
   Base.setUp (self)
   self.type, self.name, self.path = base.find_pattern ()