def get_mock_bolt(component=get_mock_component(), inputs=[], outputs=[]):
bolt = topology_pb2.Bolt()<EOL>bolt.comp.CopyFrom(component)<EOL>for i in inputs:<EOL><INDENT>added = bolt.inputs.add()<EOL>added.CopyFrom(i)<EOL><DEDENT>for o in outputs:<EOL><INDENT>added = bolt.outputs.add()<EOL>added.CopyFrom(o)<EOL><DEDENT>return bolt<EOL>
Returns a mock protobuf Bolt object from topology_pb2