6.2.3 Length Validation

We’ve constrained our User model to require a name for each user, but we
should go further: the user’s names will be displayed on the sample
site, so we should enforce some limit on their length. With all the work
we did in Section 6.2.2, this step is easy.

We start with a test. There’s no science to picking a maximum length;
we’ll just pull 50 out of thin air as a reasonable upper bound, which
means verifying that names of 51 characters are too long (Listing 6.11).