FAQ

Tim Peters wrote:
[paul koelle]
code:
print 'this is expected to fail. The "Type" column is unique in the DB'

By "this is expected to fail", do you mean that the test is supposed
to fail, or that the test is supposed to pass by verifying that the
thing it's testing fails? "This" is ambiguous. I'll assume the
latter.
correct.

[ snipp ]
You didn't show enough code so that a reader could guess the answers
to these questions.
My apologies. In fact, it turned out to be simple as:
self.failUnlessRaises(IntegrityError, certs.Subcacert.new,
**self.client_tmpl)

thanks again
Paul

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedOct 9, '04 at 3:24p
activeOct 10, '04 at 9:49a
posts3
users2
websitepython.org

2 users in discussion

Paul koelle: 2 posts Tim Peters: 1 post

People

Translate

site design / logo © 2022 Grokbase