@patch("compass.hdsdiscovery.utils.snmpwalk_by_cl")
    def test_process_data(self, mock_snmpwalk):
        # GET operation haven't been implemeneted.
        self.assertIsNone(self.mac_plugin.process_data('GET'))

        # SNMP Walk Timeout
        # utils.snmpwalk_by_cl = Mock(return_value=None)
        mock_snmpwalk.return_value = None
        self.assertIsNone(self.mac_plugin.process_data())

        # Successfully get MAC addresses from the switch
        mock_snmp_walk_result = [
            {"iid": "40.110.212.77.198.190.88.1.48", "value": "10"},
            {"iid": "40.110.212.100.199.74.88.1.48", "value": "11"},
            {"iid": "0.12.41.53.220.2.88.1.48", "value": "12"}
        ]
        expected_mac_info = [
            {"mac": "28:6e:d4:4d:c6:be", "port": "1", "vlan": "88"},
            {"mac": "28:6e:d4:64:c7:4a", "port": "2", "vlan": "88"},
            {"mac": "00:0c:29:35:dc:02", "port": "3", "vlan": "88"}
        ]
        # utils.snmpwalk_by_cl = Mock(return_value=mock_snmp_walk_result)
        mock_snmpwalk.return_value = mock_snmp_walk_result
        self.mac_plugin.get_port = Mock()
        self.mac_plugin.get_port.side_effect = ["1", "2", "3"]
        result = self.mac_plugin.process_data()
        self.assertEqual(expected_mac_info, result)
Helper function to train and predict the dynamic linear model for a train and test set. Seperated from the main
dataset/ETHPy150Open openstack/compass-core/compass/tests/hdsdiscovery/test_hdsdiscovery.py/HuaweiMacTest.test_process_data--crossover with--dataset/ETHPy150Open brandonckelly/bck_stats/bck_stats/dynamic_linear_model.py/_train_predict_dlm