Compatible unittest for Python2.6.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>