Skip to content

Commit

Permalink
modify method name more clear in test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
KoMinkyu committed Oct 12, 2016
1 parent d9ff0f4 commit a94a7dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def post_webhook_from_trusted_remote_addr(client):
return client.post('/webhook', environ_base={'REMOTE_ADDR': '111.11.1.1'})


def post_test_route(client):
return client.post('/teset')
def post_non_webhook_path(client):
return client.post('/test')


def test_limit_remote_addr(client):
rv = post_webhook_from_trusted_remote_addr(client)
assert rv.status_code == 403

rv = post_test_route(client)
rv = post_non_webhook_path(client)
assert rv.status_code != 403

0 comments on commit a94a7dd

Please sign in to comment.