Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1066)

Issue 5275041: checkpkg: A better unit test interface (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by automatthias
Modified:
12 years, 8 months ago
Reviewers:
bdwalton
Visibility:
Public.

Patch Set 1 #

Total comments: 1

Patch Set 2 : A simpler way to do this #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -402 lines) Patch
M gar/v2/lib/python/package_checks.py View 1 2 chunks +6 lines, -8 lines 0 comments Download
M gar/v2/lib/python/package_checks_test.py View 1 70 chunks +223 lines, -394 lines 0 comments Download

Messages

Total messages: 1
automatthias
13 years, 1 month ago (2011-10-15 16:26:39 UTC) #1
http://codereview.appspot.com/5275041/diff/1/gar/v2/lib/python/package_checks...
File gar/v2/lib/python/package_checks_test.py (right):

http://codereview.appspot.com/5275041/diff/1/gar/v2/lib/python/package_checks...
gar/v2/lib/python/package_checks_test.py:105: self.mox.VerifyAll()
It turns out that you can run VerifyAll in the tearDown() function, and it still
report the right test function name if the verification fails. So there's no
need to use the 'with' statement here at all.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b