How to write negative scenarios/scripts for a text box with 30 character in python

How to write negative scenarios/scripts for a text box with 30 character in python? Need some examples