def test_string(self): expected = { 'type': 'COMMAND', 'type_data': 'process_log', 'data': {'info': 'Some info'}, } self.assertEqual(info('Some info'), expected)
def test_string(self): self.assertEqual(info('Some info'), '{"proc.info": "Some info"}')
def info(self, *args): """Log informational message.""" report = resolwe_runtime_utils.info(' '.join([str(x) for x in args])) # TODO: Use the protocol to report progress. print(report)