Задать вопрос

Тел: +7 965 3737 888

536

Просмотров

0

Ответов

Test Server Thread

<p>This class runs a django test server in another thread. This is very useful for e.g. selenium integration. Simple to integrate into django test framework.</p>
<p>Usage:</p>
server = TestServerThread("127.0.0.1", "8081")
server.start()

# Run tests e.g.
req = urllib.urlopen("http://127.0.0.1:8081")
contents = req.read()

server.stop()

<p>ps. I don't actually double space my code :). Not sure whats up with that!</p>

Вопрос полезен? Да0/Нет0
file_4857.py(2.0Кб)
None