Exemple #1
0
def test_method_not_allowed() -> None:
    error = MethodNotAllowed(['GET', 'POST'])
    assert 'GET, POST' == error.get_headers()['Allow']
Exemple #2
0
def test_method_not_allowed() -> None:
    error = MethodNotAllowed(["GET", "POST"])
    assert "GET, POST" == error.get_headers()["Allow"]