예제 #1
0
    def test_maps(self):
        mse = MSE()

        response = mse.get('maps')

        assert response is not None, "No response returned"
        assert 'Maps' in response
예제 #2
0
파일: main.py 프로젝트: relaxdiego/mobility
def get_maps():
    # See mobility/framework/mse.py for information on
    # how the MSE class is implemented
    mse = MSE()

    # The return value of mse.get('maps') will be available
    # to the maps.html template as the variable 'maps'
    return render_template("maps.html", maps=mse.get("maps"))