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.
20 jobs for for_testrunner_1 in 0 seconds (queued for 1 second)
Status Job ID Name Coverage
  External
failed SlapOS-Master.UnitTest-Zope4py2

02:03:39

passed Wendelin.UnitTest-TestRunner1

00:25:01

passed Wendelin.UnitTest-zope4py2

00:41:40

failed SlapOS-Master.UnitTest-Zope4py2

failed SlapOS-Master.UnitTest-Zope4py2

01:55:55

passed Wendelin.UnitTest-TestRunner1

00:25:26

passed Wendelin.UnitTest-TestRunner1

00:31:06

passed Wendelin.UnitTest-TestRunner1

00:35:28

passed Wendelin.UnitTest-TestRunner1

00:32:56

passed Wendelin.UnitTest-TestRunner1

00:30:24

passed Wendelin.UnitTest-TestRunner1

00:36:14

passed Wendelin.UnitTest-TestRunner1

00:46:19

passed Wendelin.UnitTest-TestRunner1

00:30:31

passed Wendelin.UnitTest-TestRunner1

00:30:01

passed Wendelin.UnitTest-zope4py2

00:38:17

passed Wendelin.UnitTest-zope4py2

08:41:11

passed Wendelin.UnitTest-zope4py2

03:47:24

passed Wendelin.UnitTest-zope4py2

passed Wendelin.UnitTest-zope4py2

00:39:14

passed Wendelin.UnitTest-zope4py2

07:08:41