'Test pickle file location when running a Mac source install'

@mock.patch('utils.pidfile.tempfile.gettempdir', return_value='/a/test/tmp/dir')
@mock.patch('utils.pidfile.PidFile.get_dir', return_value='')
@mock.patch('utils.platform.Platform.is_win32', return_value=False)
@mock.patch('utils.platform.Platform.is_mac', return_value=True)
def test_agent_status_pickle_file_mac_source(self, *mocks):

    expected_path = os.path.join('/a/test/tmp/dir', 'AgentStatus.pickle')
    self.assertEqual(AgentStatus._get_pickle_path(), expected_path)
