tests/test_none.py @ 5dc059aeb5f4

Fix bookmark output on Mercurial 3.5.

Mercurial 3.5 renamed the `repo._bookmarkcurrent` attribute to
`_activebookmark`.
author Kevin Bullock <kbullock@ringworld.org>
date Fri, 31 Jul 2015 14:32:34 -0500
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}'