def test_getapp():
    """get_app returns a list of resources from the dictionary."""
    app = wsgiservice.get_app(globals())
    print app
    print app._resources
    assert isinstance(app, wsgiservice.application.Application)
    assert len(app._resources) == 7
    resources = (Resource1, Resource2, Resource3, Resource4, Resource5,
        Resource6)
    assert app._resources[0] in resources
    assert app._resources[1] in resources
    assert app._resources[2] in resources
    assert app._resources[3] in resources
    assert resources in app._resources[4]
    assert app._resources[5] in resources
dataset/ETHPy150Open pneff/wsgiservice/tests/test_application.py/test_getapp/swapped operands of `in`