コード例 #1
0
ファイル: test_base.py プロジェクト: durandj/mymcadmin
def test_info_formatting(secho):
    """
    Tests that the info command passes on formatting
    """

    info('Hello, world!', underline = True)
    secho.assert_called_with('Hello, world!', fg = 'blue', underline = True)
コード例 #2
0
ファイル: test_base.py プロジェクト: durandj/mymcadmin
def test_info(secho):
    """
    Tests that the info command works correctly
    """

    info('Hello, world!')
    secho.assert_called_with('Hello, world!', fg = 'blue')