@trap
def expect(invocation, out=None, err=None, program=None, invoke=True,
    test=None):
    if program is None:
        program = Program()
    if invoke:
        invocation = "invoke {0}".format(invocation)
    program.run(invocation, exit=False)
    # Perform tests
    if out is not None:
        (test or eq_)(sys.stdout.getvalue(), out)
    if err is not None:
        (test or eq_)(sys.stderr.getvalue(), err)
Return a method that returns a list of mediatypes
dataset/ETHPy150Open pyinvoke/invoke/tests/_util.py/expect--crossover with--dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/__init__.py/Api.mediatypes_method