

def test_module_with_id(self):
    test_manager = self.__create_test_instance([{
        'module': 'scalyr_agent.builtin_monitors.test_monitor',
        'id': 'first',
        'gauss_mean': 0,
    }, {
        'module': 'scalyr_agent.builtin_monitors.test_monitor',
        'gauss_mean': 0,
    }], [])
    self.assertEquals(len(test_manager.monitors), 2)
    self.assertEquals(test_manager.monitors[0].monitor_name, 'test_monitor(first)')
    self.assertEquals(test_manager.monitors[1].monitor_name, 'test_monitor(2)')

dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/tests/monitors_manager_test.py MonitorsManagerTest.test_module_with_id/original