gh-149663: fix typo in `unittest` docs (#149670)

`hastattr` -> `hasattr`
1 file changed