test: adjust self.publish() tests for Zope4
self.publish() had a bug regarding status code for empty responses on Zope2 and that bug was fixed in Zope4, this adjust the code to support both versions.
self.publish() had a bug regarding status code for empty responses on Zope2 and that bug was fixed in Zope4, this adjust the code to support both versions.