摘要: 突破test.py,弄个目录放测试案例 总所周知,django支持放在models.py中的doctest和tests.py,他们都要放在项目目录下。如果为了测试model, 使用doctest让测试挨着model的定义,而且也可方便得到文档,这可接受。但是tests.py放所有的测试案例严重不符合我的习惯,我喜欢把所有测试案例集中放在一个专门的目录中,而且一个文件一个TestCase。因此,考虑... 阅读全文
posted @ 2010-05-13 18:08 观无明 阅读(433) 评论(0) 推荐(0) 编辑
摘要: Steps download and install Python download and install setuptool, please choose right setuptool version which matches python version make a virtualenv > virtualenv yourenvname install pip > easy... 阅读全文
posted @ 2010-05-13 00:11 观无明 阅读(583) 评论(0) 推荐(0) 编辑