Fixed hg help screen for prompt
hg help would report "(no help text available)" for the prompt plugin
because the package comment was located after the future import. This
patch fixes that problem by relocating the future import to after the
package comment.
author |
Chris Mansley <chris.mansley@us.bosch.com> |
date |
Fri, 20 Jan 2012 10:17:56 -0800 |
parents |
22fefa553086 |
children |
(none) |
'''Test output without keywords.'''
from nose import *
from util import *
@with_setup(setup_sandbox, teardown_sandbox)
def test_blank():
output = prompt(fs='')
assert output == ''
@with_setup(setup_sandbox, teardown_sandbox)
def test_text():
output = prompt(fs='test one two three')
assert output == 'test one two three'
@with_setup(setup_sandbox, teardown_sandbox)
def test_invalid_keyword():
output = prompt(fs='{invalidkeyword}')
assert output == '{invalidkeyword}'