推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
mengzhuo
V2EX  ›  Python

如何编写 Python 多线程 TestCase?

  •  
  •   mengzhuo · Aug 26, 2014 · 3281 views
    This topic created in 4420 days ago, the information mentioned may be changed or developed.
    我希望Testcase中
    setUp时能启动一个多线程的server,
    然后每个tc都能做一次访问数据,验证正确性

    这该怎么做呢....
    具体代码在gsmtpd
    https://github.com/34nm/gsmtpd/tree/dev
    Supplement 1  ·  Aug 27, 2014
    写得有点不对……我其实对这个问题没有半点头绪……链接是我现在的代码而已……
    2 replies  •  2014-08-28 16:45:42 +08:00
    4everLoveU
        1
    4everLoveU  
       Aug 28, 2014
    mengzhuo
        2
    mengzhuo  
    OP
       Aug 28, 2014
    @4everLoveU 怎么用???????????????
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2408 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:18 · PVG 20:18 · LAX 05:18 · JFK 08:18
    ♥ Do have faith in what you're doing.