gabrielfalcao/sure

provide cool decorators

Open

#15 opened on Jun 16, 2012

View on GitHub
 (1 comment) (0 reactions) (1 assignee)Python (75 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (686 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

that fails if a TCP port is busy

from sure import expect

@expect.free_port(8000)
def test_my_server():
    # run the server
    # run assertions against http request/responses

Contributor guide