minor: getbasetemp: dedent, improve assert (#5327)
minor: getbasetemp: dedent, improve assert (#5327)

minor: getbasetemp: dedent, improve assert
pytest-dev/pytest,tomviner/pytest,markshao/pytest,Akasurde/pytest,alfredodeza/pytest,tomviner/pytest,nicoddemus/pytest,The-Compiler/pytest,RonnyPfannschmidt/pytest,The-Compiler/pytest,nicoddemus/pytest