Beispiel #1
0
 def test_user_22_create(self):
         userList = api.Users.Getall()
         exist = False
         for item in userList.users.user:
                 if item.loginName == userToCreate:
                         exist = True
         if not exist:
                 user = User_Cmd()
                 user.set_globals(api,login,password)
                 t = user.do_create("--account " + userToCreate + " --code default --email " + userToCreate + "@usharesoft.com --accountPassword " + userToCreatePassword)
                 self.assertEquals(t,0)
         else:
                 unittest.skip("User Has already been created.")
Beispiel #2
0
 def test_user_08_info(self):
         user = User_Cmd()
         user.set_globals(api,login,password)
         t = user.do_info("--account "+userTest2)
         self.assertEquals(t,0)
Beispiel #3
0
 def test_user_07_list(self):
         user = User_Cmd()
         user.set_globals(api,login,password)
         t = user.do_list(None)
         self.assertEquals(t,0)