X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestUserSfa.py;h=7fb08c5d7642c769c07c523737d85009fb8e034e;hb=a9e5d3afadff87fa868bd6c2e6c2dd31ae80f816;hp=ab73cb99615761668bc3f372727f957e6d23ca2d;hpb=c8e2f4e3a327181b29521583770a6f0ff68ca6eb;p=tests.git diff --git a/system/TestUserSfa.py b/system/TestUserSfa.py index ab73cb9..7fb08c5 100644 --- a/system/TestUserSfa.py +++ b/system/TestUserSfa.py @@ -2,7 +2,7 @@ # Copyright (C) 2010 INRIA # import os, sys, time -import xmlrpclib +import xmlrpc.client import utils @@ -36,7 +36,7 @@ class TestUserSfa: # handle key separately because of embedded whitespace # hack - the user's pubkey is avail from his hrn command += " -k {}/{}.pub".format(self.sfi_path(), user_hrn) - return self.test_plc.run_in_guest(self.sfi_pi(command)) == 0 + return self.test_plc.run_in_guest(self.sfi_pi(command)) == 0 def sfa_update_user (self,options): "update a user record using sfi update" @@ -45,10 +45,10 @@ class TestUserSfa: command += " --type user" command += " --xrn {}".format(user_hrn) command += " " + " ".join(self.user_spec['update_options']) - return self.test_plc.run_in_guest(self.sfi_pi(command)) == 0 + return self.test_plc.run_in_guest(self.sfi_pi(command)) == 0 def sfa_delete_user(self,options): - "run sfi delete on user record" + "run sfi delete on user record" user_hrn = self.hrn() command = "remove -t user {}".format(user_hrn) - return self.test_plc.run_in_guest(self.sfi_pi(command)) == 0 + return self.test_plc.run_in_guest(self.sfi_pi(command)) == 0