X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestUserSfa.py;h=28762c91ec75cbc56662e501377c7474574ee4d0;hb=01223f097c1f78208b6935fc0eab0915da5dc1b6;hp=ab73cb99615761668bc3f372727f957e6d23ca2d;hpb=c8e2f4e3a327181b29521583770a6f0ff68ca6eb;p=tests.git diff --git a/system/TestUserSfa.py b/system/TestUserSfa.py index ab73cb9..28762c9 100644 --- a/system/TestUserSfa.py +++ b/system/TestUserSfa.py @@ -2,7 +2,6 @@ # Copyright (C) 2010 INRIA # import os, sys, time -import xmlrpclib import utils @@ -36,7 +35,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 +44,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