All asserts substituted by ValueError
method name explicitly written in the message
Most asserts changed to ValueErrors. Two changed to warning