This test should be in its own file (named after the file it is testing). Something like test_token_generator.