def test_don_quixote_dictionary(self): archive_file, output_file = gen_archive_output_pair( 'don_quixote_dictionary') don = DonQuixote( blueprints={"blueprints": [ { "service": "cli_emitter", "args": "-f " "test_data/inputs/don_quixote_dictionary._input" " --output_sock_url tcp://*:9997 -d 0" }, { "service": "cli_listener", "args": "-f " "test_out/don_quixote_dictionary._output" " --input_sock_url tcp://localhost:9997" } ]}, disable_keyboard=True) assert don t = Thread(target=don.run) t.start() time.sleep(2) assert t.is_alive() don.kill() t.join(2) assert not t.is_alive() self.assertFiles(archive_file, output_file)
def test_don_quixote_dictionary(self): archive_file, output_file = gen_archive_output_pair( 'don_quixote_dictionary') don = DonQuixote(blueprints={ "blueprints": [{ "service": "cli_emitter", "args": "-f " "test_data/inputs/don_quixote_dictionary._input" " --output_sock_url tcp://*:9997 -d 0" }, { "service": "cli_listener", "args": "-f " "test_out/don_quixote_dictionary._output" " --input_sock_url tcp://localhost:9997" }] }, disable_keyboard=True) assert don t = Thread(target=don.run) t.start() time.sleep(2) assert t.is_alive() don.kill() t.join(2) assert not t.is_alive() self.assertFiles(archive_file, output_file)
def test_don_quixote_file(self): archive_file, output_file = gen_archive_output_pair('don_quixote_file') don = DonQuixote( file='test_data/blueprints/don_quixote_file.blueprint', disable_keyboard=True) assert don t = Thread(target=don.run) t.start() time.sleep(2) assert t.is_alive() don.kill() t.join(3) assert not t.is_alive() self.assertFiles(archive_file, output_file)
def test_don_quixote_file(self): archive_file, output_file = gen_archive_output_pair( 'don_quixote_file') don = DonQuixote( file='test_data/blueprints/don_quixote_file.blueprint', disable_keyboard=True) assert don t = Thread(target=don.run) t.start() time.sleep(2) assert t.is_alive() don.kill() t.join(3) assert not t.is_alive() self.assertFiles(archive_file, output_file)