view MoinMoin/macro/_tests/test_GetText.py @ 1974:87272c032485

remove unused imports
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 10 Feb 2013 23:54:13 +0100
parents 4ac437141bbe
children 181a556a0920
line wrap: on
line source
# Copyright: 2011 Prashant Kumar <contactprashantat AT gmail DOT com>
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

"""
Test for macro.GetText
"""

from MoinMoin.converter._args import Arguments
from MoinMoin.macro.GetText import *

def test_Macro():
    """ test for Macro.macro """
    macro_obj = Macro()
    arguments = Arguments(['test_argument1', 'test_argument2'])
    result = macro_obj.macro('content', arguments, 'page_url', 'alternative')
    expected = u'test_argument1 test_argument2'
    assert result == expected