Module ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias Expr Call NameLoad Str Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str Str Str NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str Str Str NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str Str Str NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str Num Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Dict Str Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A __future__ absolute_import salt.states mac_defaults macdefaults salttesting TestCase salttesting.helpers ensure_in_syspath salttesting.mock MagicMock patch N/A N/A ensure_in_syspath ../../ N/A N/A macdefaults __salt__ N/A MacDefaultsTestCase N/A TestCase N/A test_write N/A N/A self N/A N/A N/A 
            Test writing a default setting
         N/A expected N/A changes comment name result N/A written com.apple.CrashReporter DialogType is set to Server DialogType True N/A read_mock N/A MagicMock return_value Local N/A write_mock N/A MagicMock return_value N/A retcode 0 N/A N/A N/A patch dict N/A macdefaults __salt__ N/A macdefaults.read macdefaults.write read_mock write_mock N/A N/A out N/A N/A macdefaults write DialogType com.apple.CrashReporter Server N/A N/A N/A read_mock assert_called_once_with com.apple.CrashReporter DialogType None N/A N/A N/A write_mock assert_called_once_with com.apple.CrashReporter DialogType Server string None N/A N/A N/A self assertEqual out expected N/A test_write_set N/A N/A self N/A N/A N/A 
            Test writing a default setting that is already set
         N/A expected N/A changes comment name result N/A com.apple.CrashReporter DialogType is already set to Server DialogType True N/A read_mock N/A MagicMock return_value Server N/A write_mock N/A MagicMock return_value N/A retcode 0 N/A N/A N/A patch dict N/A macdefaults __salt__ N/A macdefaults.read macdefaults.write read_mock write_mock N/A N/A out N/A N/A macdefaults write DialogType com.apple.CrashReporter Server N/A N/A N/A read_mock assert_called_once_with com.apple.CrashReporter DialogType None N/A N/A N/A write_mock called N/A N/A N/A self assertEqual out expected N/A test_write_boolean N/A N/A self N/A N/A N/A 
            Test writing a default setting with a boolean
         N/A expected N/A changes comment name result N/A written com.apple.something Key is set to True Key True N/A read_mock N/A MagicMock return_value 0 N/A write_mock N/A MagicMock return_value N/A retcode 0 N/A N/A N/A patch dict N/A macdefaults __salt__ N/A macdefaults.read macdefaults.write read_mock write_mock N/A N/A out N/A N/A macdefaults write Key com.apple.something True vtype boolean N/A N/A N/A read_mock assert_called_once_with com.apple.something Key None N/A N/A N/A write_mock assert_called_once_with com.apple.something Key True boolean None N/A N/A N/A self assertEqual out expected N/A test_write_boolean_match N/A N/A self N/A N/A N/A 
            Test writing a default setting with a boolean that is already set to the same value
         N/A expected N/A changes comment name result N/A com.apple.something Key is already set to YES Key True N/A read_mock N/A MagicMock return_value 1 N/A write_mock N/A MagicMock return_value N/A retcode 0 N/A N/A N/A patch dict N/A macdefaults __salt__ N/A macdefaults.read macdefaults.write read_mock write_mock N/A N/A out N/A N/A macdefaults write Key com.apple.something YES vtype boolean N/A N/A N/A read_mock assert_called_once_with com.apple.something Key None N/A N/A N/A write_mock called N/A N/A N/A self assertEqual out expected N/A test_write_integer N/A N/A self N/A N/A N/A 
            Test writing a default setting with a integer
         N/A expected N/A changes comment name result N/A written com.apple.something Key is set to 1337 Key True N/A read_mock N/A MagicMock return_value 99 N/A write_mock N/A MagicMock return_value N/A retcode 0 N/A N/A N/A patch dict N/A macdefaults __salt__ N/A macdefaults.read macdefaults.write read_mock write_mock N/A N/A out N/A N/A macdefaults write Key com.apple.something 1337 vtype integer N/A N/A N/A read_mock assert_called_once_with com.apple.something Key None N/A N/A N/A write_mock assert_called_once_with com.apple.something Key 1337 integer None N/A N/A N/A self assertEqual out expected N/A test_write_integer_match N/A N/A self N/A N/A N/A 
            Test writing a default setting with a integer that is already set to the same value
         N/A expected N/A changes comment name result N/A com.apple.something Key is already set to 1337 Key True N/A read_mock N/A MagicMock return_value 1337 N/A write_mock N/A MagicMock return_value N/A retcode 0 N/A N/A N/A patch dict N/A macdefaults __salt__ N/A macdefaults.read macdefaults.write read_mock write_mock N/A N/A out N/A N/A macdefaults write Key com.apple.something 1337 vtype integer N/A N/A N/A read_mock assert_called_once_with com.apple.something Key None N/A N/A N/A write_mock called N/A N/A N/A self assertEqual out expected N/A N/A N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests MacDefaultsTestCase needs_daemon False