changed assert method to be compatible with py26.