Exemplo n.º 1
0
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')
Exemplo n.º 2
0
def test_error(secho):
    """
    Tests that the error command works correctly
    """

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