Assert methods for python 2.6