In this function, 'self.assertTrue' was used.
I will put this function to global scope, use 'assert' instead of 'self.assertTrue'.