示例#1
0
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
def test_info(secho):
    """
    Tests that the info command works correctly
    """

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