gabrielfalcao/sure

provide cool decorators

Open

#15 aperta il 16 giu 2012

Vedi su GitHub
 (1 commento) (0 reazioni) (1 assegnatario)Python (75 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (686 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor