def test_stop_resume(self): """ Test the ability to stop and restart the process """ self.clean_file() # Create and store the new driver state self.memento = { DataSourceConfigKey.HARVESTER: { 'last_filesize': 1300, 'last_checksum': 'e56e28e6bd67c6b00c6702c9f9a13f93' }, DataSourceConfigKey.PARSER: { 'in_process_data': [], 'unprocessed_data': [[0, 32], [222, 871], [1257, 1300]], 'timestamp': 3583725976.97 } } self.driver = MflmADCPSDataSetDriver( self._driver_config()['startup_config'], self.memento, self.data_callback, self.state_callback, self.exception_callback) # create some data to parse self.clear_async_data() self.create_sample_data("node59p1_step2.dat", "node59p1.dat") self.driver.start_sampling() # verify data is produced self.assert_data(AdcpsParserDataParticle, 'test_data_2.txt.result.yml', count=1, timeout=10)