[IMP]Improved python test case used assertTrue.