

def test_1(self):
    obj = ConsoleStatusReporter()
    obj.engine = EngineEmul()
    obj.engine.provisioning = Local()
    obj.engine.config[Provisioning.PROV] = ''
    jmeter = JMeterExecutor()
    jmeter.engine = obj.engine
    jmeter.start_time = time.time()
    jmeter.execution[ScenarioExecutor.HOLD_FOR] = 10
    obj.engine.provisioning.executors = [jmeter]
    obj.settings['disable'] = False
    obj.settings['dummy_cols'] = 160
    obj.settings['dummy_rows'] = 40
    obj.prepare()
    obj.startup()
    obj.check()
    obj.temp_stream.write('test1\n')
    obj.temp_stream.flush()
    obj.temp_stream.write('test1\n')
    obj.temp_stream.flush()
    obj.check()
    for n in range(0, 10):
        point = self.__get_datapoint(n)
        obj.aggregated_second(point)
        obj.temp_stream.write(('test %s\n' % n))
        obj.temp_stream.flush()
        obj.check()
        self.assertTrue(obj.screen.started)
    obj.check()
    obj.shutdown()
    obj.post_process()

dataset/ETHPy150Open Blazemeter/taurus/tests/modules/test_consoleStatusReporter.py TestConsoleStatusReporter.test_1/original