2012-04-29から1日間の記事一覧
leap.py #!/usr/bin/env python2.7 # -*- coding:utf-8 -*- def is_leap(year): """ judgement is leap """ #assert( isinstance(year, int) == True ) if year % 400 == 0 or (year % 100 != 0 and year % 4 == 0): result = True else: result = False ret…
nosetest周りでググってたらrednoseというプラグインに出会ったので、 早速入れてみた。rednose 0.3.2 : Python Package Index % nosetests 〜〜〜 --rednose 〜〜〜 使い方は今までの使い方に --rednose ってオプションを入れるだけ! これだけでテストの出…