ERP5TypeTestCase: backport Zope pull request 1059

This is a simplified version that works well enough for python 2.
For Zope 4 and python 3 we are considering reusing publish.
6 jobs for fix/bt_sort_properties in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

passed ERP5.PerformanceTest-Master

00:25:59

failed ERP5.UnitTest-Master

failed ERP5.UnitTest-Master.Medusa

passed SlapOS.Eggs.UnitTest-Master.Python2

00:12:02

passed SlapOS.Eggs.UnitTest-Master.Python3