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')
def test_error(secho): """ Tests that the error command works correctly """ error('Hello, world!') secho.assert_called_with('Hello, world!', fg = 'red')