zope.testbrowser release?

Wolfgang Schnerring <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
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 · [email protected] · 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

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFOqBivYfWCHec7w7QRAiLSAJ4+BebM/0PwxTuZEsKSJCCsA8joOQCgvHRf
xivQda2AFVQ5NKBSgryxCKk=
=amzN
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.