04 2012 档案

摘要:Python单元测试框架Pyunit 使用示例: 1 import unittest 2 3 class Person: 4 def age(self): 5 return 34 6 def name(self): 7 return 'bob' 8 9 class TestSequenceFunctions(unittest.TestCase):10 11 def setUp(self):12 self.man = Person()13 print 'set up now'14 ... 阅读全文
posted @ 2012-04-16 14:19 软践 阅读(3329) 评论(0) 推荐(1)
摘要:详见以下页面:http://djangosnippets.org/snippets/815/ 阅读全文
posted @ 2012-04-11 11:26 软践 阅读(180) 评论(0) 推荐(0)
摘要:详见以下页面:http://askcuix.iteye.com/blog/222308 阅读全文
posted @ 2012-04-11 11:22 软践 阅读(167) 评论(0) 推荐(0)
摘要:详见如下页面:http://www.cnblogs.com/jeffreysun/archive/2009/11/17/1604621.html 阅读全文
posted @ 2012-04-11 11:18 软践 阅读(174) 评论(0) 推荐(0)