Module Expr Str Import alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Str NameLoad Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Str NameLoad Num Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr keyword Str keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Str Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr keyword Str keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr keyword Str keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str ListLoad Num ListLoad Str ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str NameLoad ListLoad Str Str Str Str Str Str Str Str Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str ListLoad Num ListLoad Str ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad ListLoad Str Str Str Str Str Str Str Str NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for profiles module. N/A mock google.apputils basetest N/A profiles ProfilesModuleTest N/A N/A basetest TestCase N/A testGenerateUUID N/A N/A self N/A N/A N/A N/A N/A self assertIsInstance N/A N/A profiles GenerateUUID a str N/A N/A N/A self assertTrue N/A N/A N/A N/A profiles GenerateUUID a isupper N/A N/A N/A self assertEqual N/A N/A profiles GenerateUUID a N/A N/A profiles GenerateUUID a N/A testValidatePayload N/A N/A self N/A N/A N/A payload N/A N/A N/A N/A self assertRaises N/A profiles PayloadValidationError N/A N/A N/A N/A profiles ValidatePayload payload N/A N/A N/A payload update N/A N/A profiles PAYLOADKEYS_IDENTIFIER N/A profiles PAYLOADKEYS_DISPLAYNAME N/A profiles PAYLOADKEYS_TYPE a a com.apple.welcome.to.1984 N/A N/A N/A profiles ValidatePayload payload N/A N/A N/A self assertEqual N/A N/A payload get N/A profiles PAYLOADKEYS_UUID N/A N/A profiles GenerateUUID a N/A N/A N/A self assertEqual N/A N/A payload get N/A profiles PAYLOADKEYS_ENABLED True N/A N/A N/A self assertEqual N/A N/A payload get N/A profiles PAYLOADKEYS_VERSION 1 N/A N/A ProfileClassTest N/A N/A basetest TestCase N/A N/A Tests for the Profile class. _GetValidProfile N/A N/A self include_payload N/A True N/A N/A profile N/A N/A profiles Profile N/A N/A N/A profile Set N/A profiles PAYLOADKEYS_DISPLAYNAME Acme Corp Config Profile N/A N/A N/A profile Set N/A profiles PAYLOADKEYS_IDENTIFIER com.acme.configprofile N/A N/A N/A profile Set N/A profiles PAYLOADKEYS_ORG Acme Corp N/A N/A N/A profile Set N/A profiles PAYLOADKEYS_SCOPE N/A System User N/A N/A N/A profile Set N/A profiles PAYLOADKEYS_TYPE Configuration N/A include_payload N/A N/A N/A N/A profile AddPayload N/A N/A self _GetValidPayload N/A profile N/A _GetValidPayload N/A N/A self N/A N/A N/A test_payload N/A N/A profiles PAYLOADKEYS_IDENTIFIER N/A profiles PAYLOADKEYS_DISPLAYNAME N/A profiles PAYLOADKEYS_TYPE com.test.payload Test Payload com.apple.welcome.to.1984 N/A test_payload N/A testInit N/A N/A self N/A N/A N/A Test the __init__ method. N/A profile N/A N/A profiles Profile N/A N/A N/A self assertIsNotNone N/A profile _profile N/A N/A N/A self assertEqual N/A N/A profile _profile N/A N/A profiles PAYLOADKEYS_CONTENT N/A N/A testGet N/A N/A self N/A N/A N/A profile N/A N/A profiles Profile N/A N/A N/A profile _profile N/A TestKey TestValue N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_CONTENT N/A N/A N/A N/A self assertEqual N/A N/A profile Get TestKey TestValue N/A testSet N/A N/A self N/A N/A N/A profile N/A N/A profiles Profile N/A N/A N/A profile Set TestKey TestValue N/A N/A N/A profile Set OtherKey OtherValue N/A N/A N/A self assertEqual N/A N/A profile _profile N/A TestKey TestValue N/A N/A N/A self assertEqual N/A N/A profile _profile N/A OtherKey OtherValue N/A testStr N/A N/A self N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A N/A self assertEqual N/A N/A profile __str__ Acme Corp Config Profile N/A testAddPayload N/A N/A self N/A N/A N/A profile N/A N/A self _GetValidProfile include_payload False N/A test_payload N/A N/A self _GetValidPayload N/A N/A N/A self assertRaises N/A profiles PayloadValidationError N/A N/A N/A N/A profile AddPayload Payloads should be dicts N/A N/A N/A profile AddPayload test_payload N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_CONTENT N/A test_payload N/A testValidateProfile N/A N/A self N/A N/A N/A profile N/A N/A profiles Profile N/A N/A N/A self assertRaises N/A profiles ProfileValidationError N/A N/A N/A N/A profile _ValidateProfile N/A profile N/A N/A self _GetValidProfile include_payload False N/A N/A N/A self assertRaises N/A profiles ProfileValidationError N/A N/A N/A N/A profile _ValidateProfile N/A N/A N/A profile AddPayload N/A N/A self _GetValidPayload N/A N/A N/A profile _ValidateProfile N/A N/A N/A self assertIsNotNone N/A N/A profile Get N/A profiles PAYLOADKEYS_UUID N/A N/A N/A self assertIsNotNone N/A N/A profile Get N/A profiles PAYLOADKEYS_VERSION N/A testSaveSuccess N/A N/A self mock_writeplist N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A N/A profile Save /tmp/hello N/A N/A N/A mock_writeplist assert_called_once_with N/A profile _profile /tmp/hello N/A N/A N/A N/A mock patch object N/A profiles plistlib writePlist testSaveIOError N/A N/A self mock_writeplist N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A mock_writeplist side_effect IOError N/A N/A N/A self assertRaises N/A profiles ProfileSaveError N/A N/A N/A N/A profile Save /tmp/hello N/A N/A N/A mock_writeplist assert_called_once_with N/A profile _profile /tmp/hello N/A N/A N/A N/A mock patch object N/A profiles plistlib writePlist testInstallSuccess N/A N/A self mock_save mock_runprocess N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A mock_runprocess return_value N/A Output None 0 N/A N/A N/A profile Install N/A N/A N/A mock_save assert_called_once_with N/A mock ANY N/A N/A N/A mock_runprocess assert_called_once_with N/A N/A profiles CMD_PROFILES -I -F N/A mock ANY sudo None sudo_password None N/A N/A N/A N/A mock patch object N/A profiles gmacpyutil RunProcess N/A N/A N/A mock patch object N/A profiles Profile Save testInstallSudoPassword N/A N/A self mock_save mock_runprocess N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A mock_runprocess return_value N/A Output None 0 N/A N/A N/A profile Install sudo_password ladygagaeatssocks N/A N/A N/A mock_save assert_called_once_with N/A mock ANY N/A N/A N/A mock_runprocess assert_called_once_with N/A N/A profiles CMD_PROFILES -I -F N/A mock ANY sudo ladygagaeatssocks sudo_password ladygagaeatssocks N/A N/A N/A N/A mock patch object N/A profiles gmacpyutil RunProcess N/A N/A N/A mock patch object N/A profiles Profile Save testInstallCommandFail N/A N/A self mock_save mock_runprocess N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A mock_runprocess return_value N/A Output Errors 42 N/A N/A N/A self assertRaisesRegexp N/A profiles ProfileInstallationError Profile installation failed!
Output, Errors, 42 N/A N/A N/A N/A profile Install sudo_password ladygagaeatssocks N/A N/A N/A mock_save assert_called_once_with N/A mock ANY N/A N/A N/A mock_runprocess assert_called_once_with N/A N/A profiles CMD_PROFILES -I -F N/A mock ANY sudo ladygagaeatssocks sudo_password ladygagaeatssocks N/A N/A N/A N/A mock patch object N/A profiles gmacpyutil RunProcess N/A N/A N/A mock patch object N/A profiles Profile Save testInstallCommandException N/A N/A self mock_save mock_runprocess N/A N/A N/A profile N/A N/A self _GetValidProfile N/A N/A mock_runprocess side_effect N/A N/A profiles gmacpyutil GmacpyutilException N/A N/A N/A self assertRaisesRegexp N/A profiles ProfileInstallationError Profile installation failed!
 N/A N/A N/A N/A profile Install sudo_password ladygagaeatssocks N/A N/A N/A mock_save assert_called_once_with N/A mock ANY N/A N/A N/A mock_runprocess assert_called_once_with N/A N/A profiles CMD_PROFILES -I -F N/A mock ANY sudo ladygagaeatssocks sudo_password ladygagaeatssocks N/A N/A N/A N/A mock patch object N/A profiles gmacpyutil RunProcess N/A N/A N/A mock patch object N/A profiles Profile Save N/A NetworkProfileClassTest N/A N/A basetest TestCase N/A N/A Tests for the NetworkProfile class. testInit N/A N/A self N/A N/A N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_DISPLAYNAME Network Profile (testuser) N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_DESCRIPTION Network authentication settings N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_IDENTIFIER com.megacorp.networkprofile N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_SCOPE N/A System User N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_TYPE Configuration N/A N/A N/A self assertEqual N/A N/A profile Get N/A profiles PAYLOADKEYS_CONTENT N/A N/A testGenerateID N/A N/A self N/A N/A N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A self assertEqual N/A N/A profile _GenerateID test_suffix com.megacorp.networkprofile.test_suffix N/A N/A N/A self assertEqual N/A N/A profile _GenerateID another_suffix com.megacorp.networkprofile.another_suffix N/A testAddMachineCertificateSuccess N/A N/A self mock_certificate mock_pkcs12 mock_loadcert mock_loadkey mock_addpayload N/A N/A N/A mock_certobj N/A N/A mock MagicMock N/A N/A mock_certobj subject_cn My Cert Subject N/A N/A mock_certobj osx_fingerprint 0011223344556677889900 N/A N/A mock_certificate return_value mock_certobj N/A mock_pkcs12obj N/A N/A mock MagicMock N/A N/A N/A mock_pkcs12obj export return_value -----PKCS12 Data----- N/A N/A mock_pkcs12 return_value mock_pkcs12obj N/A N/A mock_loadcert return_value certobj N/A N/A mock_loadkey return_value keyobj N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A profile AddMachineCertificate fakecert fakekey N/A N/A N/A mock_pkcs12 assert_called_once_with N/A N/A N/A N/A mock_pkcs12obj set_certificate assert_called_once_with certobj N/A N/A N/A N/A mock_pkcs12obj set_privatekey assert_called_once_with keyobj N/A N/A N/A N/A mock_pkcs12obj export assert_called_once_with 0011223344556677889900 N/A N/A N/A mock_loadcert assert_called_once_with 1 fakecert N/A N/A N/A mock_loadkey assert_called_once_with 1 fakekey N/A N/A N/A mock_addpayload assert_called_once_with N/A N/A profiles PAYLOADKEYS_IDENTIFIER N/A profiles PAYLOADKEYS_TYPE N/A profiles PAYLOADKEYS_DISPLAYNAME N/A profiles PAYLOADKEYS_ENABLED N/A profiles PAYLOADKEYS_VERSION N/A profiles PAYLOADKEYS_CONTENT N/A profiles PAYLOADKEYS_UUID Password com.megacorp.networkprofile.machine_cert com.apple.security.pkcs12 My Cert Subject True 1 N/A N/A N/A profiles plistlib Data -----PKCS12 Data----- N/A mock ANY 0011223344556677889900 N/A N/A N/A N/A mock patch object N/A profiles NetworkProfile AddPayload N/A N/A N/A mock patch object N/A profiles crypto load_privatekey N/A N/A N/A mock patch object N/A profiles crypto load_certificate N/A N/A N/A mock patch object N/A profiles crypto PKCS12Type N/A N/A N/A mock patch object N/A profiles certs Certificate testAddMachineCertificateInvalidKey N/A N/A self mock_certificate mock_pkcs12 mock_loadcert mock_loadkey N/A N/A N/A mock_certobj N/A N/A mock MagicMock N/A N/A mock_certobj subject_cn My Cert Subject N/A N/A mock_certobj osx_fingerprint 0011223344556677889900 N/A N/A mock_certificate return_value mock_certobj N/A mock_pkcs12obj N/A N/A mock MagicMock N/A N/A N/A mock_pkcs12obj export side_effect N/A N/A profiles crypto Error N/A N/A mock_pkcs12 return_value mock_pkcs12obj N/A N/A mock_loadcert return_value certobj N/A N/A mock_loadkey return_value keyobj_from_different_cert N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A self assertRaises N/A profiles CertificateError N/A N/A N/A N/A profile AddMachineCertificate fakecert otherfakekey N/A N/A N/A N/A mock patch object N/A profiles crypto load_privatekey N/A N/A N/A mock patch object N/A profiles crypto load_certificate N/A N/A N/A mock patch object N/A profiles crypto PKCS12Type N/A N/A N/A mock patch object N/A profiles certs Certificate testAddMachineCertificateBadCert N/A N/A self mock_certificate N/A N/A N/A N/A mock_certificate side_effect N/A N/A profiles certs CertError N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A self assertRaises N/A profiles CertificateError N/A N/A N/A N/A profile AddMachineCertificate fakecert fakekey N/A N/A N/A N/A mock patch object N/A profiles certs Certificate testAddAnchorCertificateSuccess N/A N/A self mock_certificate mock_addpayload N/A N/A N/A mock_certobj N/A N/A mock MagicMock N/A N/A mock_certobj subject_cn My Cert Subject N/A N/A mock_certobj osx_fingerprint 0011223344556677889900 N/A N/A mock_certificate return_value mock_certobj N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A profile AddAnchorCertificate my_cert N/A N/A N/A mock_certificate assert_called_once_with my_cert N/A N/A N/A mock_addpayload assert_called_once_with N/A N/A profiles PAYLOADKEYS_IDENTIFIER N/A profiles PAYLOADKEYS_TYPE N/A profiles PAYLOADKEYS_DISPLAYNAME N/A profiles PAYLOADKEYS_CONTENT N/A profiles PAYLOADKEYS_ENABLED N/A profiles PAYLOADKEYS_VERSION N/A profiles PAYLOADKEYS_UUID com.megacorp.networkprofile.0011223344556677889900 com.apple.security.pkcs1 My Cert Subject N/A N/A N/A profiles plistlib Data my_cert True 1 N/A mock ANY N/A N/A N/A N/A mock patch object N/A profiles NetworkProfile AddPayload N/A N/A N/A mock patch object N/A profiles certs Certificate testAddAnchorCertificateBadCert N/A N/A self mock_certificate N/A N/A N/A N/A mock_certificate side_effect N/A N/A profiles certs CertError N/A profile N/A N/A profiles NetworkProfile testuser N/A N/A N/A self assertRaises N/A profiles CertificateError N/A N/A N/A N/A profile AddAnchorCertificate test_cert N/A N/A N/A N/A mock patch object N/A profiles certs Certificate testAddNetworkPayloadSSID N/A N/A self mock_addpayload N/A N/A N/A profile N/A N/A profiles NetworkProfile test_user N/A N/A profile _auth_cert 00000000-AUTH-CERT-UUID-00000000 N/A N/A profile _anchor_certs N/A 00000000-ANCH-ORCE-RTUU-ID000000 N/A N/A N/A profile AddTrustedServer radius.company.com N/A N/A N/A profile AddNetworkPayload SSID N/A eap_client_data N/A AcceptEAPTypes PayloadCertificateAnchorUUID TLSTrustedServerNames TLSAllowTrustExceptions N/A 13 N/A 00000000-ANCH-ORCE-RTUU-ID000000 N/A radius.company.com False N/A N/A N/A mock_addpayload assert_called_once_with N/A AutoJoin SetupModes PayloadCertificateUUID EncryptionType Interface N/A profiles PAYLOADKEYS_DISPLAYNAME N/A profiles PAYLOADKEYS_IDENTIFIER N/A profiles PAYLOADKEYS_TYPE SSID_STR EAPClientConfiguration True N/A System User 00000000-AUTH-CERT-UUID-00000000 WPA BuiltInWireless SSID com.megacorp.networkprofile.ssid.SSID com.apple.wifi.managed SSID eap_client_data N/A N/A N/A N/A mock patch object N/A profiles NetworkProfile AddPayload testAddNetworkPayloadWired N/A N/A self mock_addpayload N/A N/A N/A profile N/A N/A profiles NetworkProfile test_user N/A N/A profile _auth_cert 00000000-AUTH-CERT-UUID-00000000 N/A N/A profile _anchor_certs N/A 00000000-ANCH-ORCE-RTUU-ID000000 N/A N/A N/A profile AddTrustedServer radius.company.com N/A N/A N/A profile AddNetworkPayload wired N/A eap_client_data N/A AcceptEAPTypes PayloadCertificateAnchorUUID TLSTrustedServerNames TLSAllowTrustExceptions N/A 13 N/A 00000000-ANCH-ORCE-RTUU-ID000000 N/A radius.company.com False N/A N/A N/A mock_addpayload assert_called_once_with N/A AutoJoin SetupModes PayloadCertificateUUID EncryptionType Interface N/A profiles PAYLOADKEYS_DISPLAYNAME N/A profiles PAYLOADKEYS_IDENTIFIER N/A profiles PAYLOADKEYS_TYPE EAPClientConfiguration True N/A System User 00000000-AUTH-CERT-UUID-00000000 Any FirstActiveEthernet Wired com.megacorp.networkprofile.wired com.apple.firstactiveethernet.managed eap_client_data N/A N/A N/A N/A mock patch object N/A profiles NetworkProfile AddPayload N/A N/A N/A __name__ __main__ N/A N/A N/A N/A basetest main