gh-103553: Improve `test_inspect`: add more assertions, remove unused (GH-103554)

(cherry picked from commit 4fe1c4b97e39429abbb9c2117fe40f585de00887)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 file changed