def get_mock_spout(component=get_mock_component(), outputs=[]):
spout = topology_pb2.Spout()<EOL>spout.comp.CopyFrom(component)<EOL>for out in outputs:<EOL><INDENT>added = spout.outputs.add()<EOL>added.CopyFrom(out)<EOL><DEDENT>return spout<EOL>
Returns a mock protobuf Spout object from topology_pb2