can_build_sle_base should be used to identify if sle base image runs against a system that it does not support registration and SUSEConnect. In this case the build of the base image is not going to work as it lacks the repositories

The call should return false if the test is run on a non-sle host.