Fix assertion

As per the docstring in the relevant test:

> Assert the string generated is between 1 and ``max_len`` chars long, inclusive.