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