Please take a look into the distutils-r1.eclass.

 +  distutils_install_for_testing.py \
 +    install --root="${T}/test-${EPYTHON}" \
 +    --no-compile || die "install test failed"

this complete block is covered by distutils_install_for_testing()