Use assertTrue instead of raising error