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

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

    error('Hello, world!')
    secho.assert_called_with('Hello, world!', fg = 'red')