[Zope-dev] zope.testbrowser release?

Wolfgang Schnerring ws at gocept.com
Wed Oct 26 14:26:55 UTC 2011


Hello,

I've added an assertion helper to zope.testbrowser that provides
``assertEllipsis``, which is very helpful when using Testbrowser with
unittest.TestCase (instead of doctests).

Some examples:

self.assertEllipsis('...bar...', 'foo bar qux')
  # -> nothing happens

self.assertEllipsis('foo', 'bar')
  # -> AssertionError: Differences (ndiff with -expected +actual):
       - foo
       + bar

self.assertNotEllipsis('foo', 'foo')
  # -> AssertionError: "Value unexpectedly matches expression 'foo'."

For convenience, if no ``actual`` value is provided,
``self.browser.contents`` is used.

I'd like to cut a release of zope.testbrowser, if nobody has any
objections against my doing so. There are also unreleased changelog
entries about handleErrors and WSGI, which look fine to me.

Wolfgang

-- 
Wolfgang Schnerring · ws at gocept.com · software development
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 219401 0 · fax +49 345 1229889 1
Python, Pyramid, Plone, Zope - consulting, development, hosting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20111026/2c52c3c4/attachment.bin 


More information about the Zope-Dev mailing list