test_refresh_failure
test_refresh_with_timeout
These get even longer like test_refresh_with_timeout_when_username_is_not_found for example.pytest-describe allows for a much nicer testing syntax. There's a great comparison here: https://github.com/pytest-dev/pytest-describe#why-bother
TL;DR, this is nicer:
def describe_my_function():
def with_default_arguments():
def with_some_other_arguments():
This isn't as nice: def test_my_function_with_default_arguments():
def test_my_function_with_some_other_arguments():