summaryrefslogtreecommitdiffstats
path: root/src/account/test/TestAccount.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/account/test/TestAccount.py')
-rw-r--r--src/account/test/TestAccount.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/account/test/TestAccount.py b/src/account/test/TestAccount.py
index e6f0c14..5763c4d 100644
--- a/src/account/test/TestAccount.py
+++ b/src/account/test/TestAccount.py
@@ -55,7 +55,7 @@ class TestAccount(AccountBase):
self.wbemconnection.InvokeMethod("CreateAccount", lams.path,
Name=self.user_name, System=computer_system.path)
# The user now should be created, check it
- subprocess.check_call(["id", self.user_name])
+ self.assertTrue(user_exists(self.user_name))
# now delete that user
clean_account(self.user_name)
@@ -69,9 +69,7 @@ class TestAccount(AccountBase):
'select * from LMI_Account where Name = "%s"' % self.user_name)[0]
self.wbemconnection.DeleteInstance(i.path)
# check if it was really deleted
- c = subprocess.Popen(["id", self.user_name])
- c.communicate()
- self.assertEqual(c.returncode, 1)
+ self.assertFalse(user_exists(self.user_name))
clean_account(self.user_name)
def test_modify_account(self):
@@ -82,9 +80,7 @@ class TestAccount(AccountBase):
i = self.wbemconnection.ExecQuery('WQL',
'select * from LMI_Account where Name = "%s"' % self.user_name)[0]
# gecos
- print i["ElementName"]
i["ElementName"] = "GECOS"
- print i["ElementName"]
self.wbemconnection.ModifyInstance(i)
self.assertEqual(field_in_passwd(self.user_name, 4), "GECOS")
# login shell