review/tests/test_comment.py @ 35fbbd1bbd26
Add a commenting test, and more test utils.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 04 Oct 2009 19:31:52 -0400 |
parents |
(none) |
children |
467dacbab7d6 |
from nose import *
from util import *
import os
from .. import messages
from mercurial import util as hgutil
@with_setup(setup_reviewed_sandbox, teardown_sandbox)
def test_blank_comment():
sandbox = get_sandbox_repo()
try:
review(comment=True)
except hgutil.Abort, e:
error = str(e)
assert messages.COMMENT_REQUIRES_MESSAGE in error
else:
assert False, 'The correct error message was not printed.'