I have replaced the asserts for this kind of checking. It is my opinion that we should leave these conditions in respective functions - in the future, we will probably use these functions in script, which will provide template upload feature for all of the providers (vsphere, rhevm, openstack).
Nevertheless, I have been known to be wrong, on occasions :)