Пример #1
0
 def setUp(self):
     """Setup paths and load plist data."""
     self.su_pref_path = self.PathOnDMG(
         "/Library/Preferences/com.apple.SoftwareUpdate.plist")
     self.su_prefs = dmgtestutilities.ReadPlist(self.su_pref_path)
     if not self.su_prefs:
         self.su_prefs = {}
Пример #2
0
 def setUp(self):
     """Setup paths."""
     self.system_pref_path = self.PathOnDMG(
         '/Library/Preferences/SystemConfiguration/preferences.plist')
     self.sys_prefs = dmgtestutilities.ReadPlist(self.system_pref_path)
     if not self.sys_prefs:
         self.sys_prefs = {}
Пример #3
0
 def testOuradminIsMemberOfAdminGroup(self):
     """Check that ouradmin user is in admin group."""
     pf = dmgtestutilities.ReadPlist(self.admin_plist)
     self.assertEqual('ouradmin' in pf['users'], True)