Use a pycon codeblock instead...

There is a 6% chance that this random string will contain a single quote and cause the doctest to fail.