uokadaの見逃し三振は嫌いです

ここで述べられていることは私の個人的な意見に基づくものであり、私が所属する組織には一切の関係はありません。

2012-04-29から1日間の記事一覧

nosetestsが出すカバレッジ率の罠

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…

redonoseを入れてみた。

nosetest周りでググってたらrednoseというプラグインに出会ったので、 早速入れてみた。rednose 0.3.2 : Python Package Index % nosetests 〜〜〜 --rednose 〜〜〜 使い方は今までの使い方に --rednose ってオプションを入れるだけ! これだけでテストの出…