Beispiel #1
0
def test_success_formatting(secho):
    """
    Tests that the success method passes on formatting
    """

    success('Hello, world!', bold = True)
    secho.assert_called_with('Hello, world!', fg = 'green', bold = True)
Beispiel #2
0
def test_success(secho):
    """
    Tests that the success method works correctly
    """

    success('Hello, world!')
    secho.assert_called_with('Hello, world!', fg = 'green')