

def test_GET_to_secret_endpoint_should_405(secret_file):
    reload(draftin_a_flask)
    test_client = draftin_a_flask.app.test_client()
    with open(secret_file) as f:
        key = f.read()
    rv = test_client.get(key)
    assert (rv.status_code == 405)

dataset/ETHPy150Open waynew/draftin-a-flask/tests/test_draftin_a_flask.py test_GET_to_secret_endpoint_should_405/original