Example #1
0
def test_help_commands():
    """Make sure help with no args shows commands."""
    assert client.cmd_help() == client.get_commands()
Example #2
0
def test_help_commands():
    """Make sure help with no args shows commands."""
    assert client.cmd_help() == client.get_commands()
Example #3
0
def test_bad_docs():
    """Make sure help works even if docblocks are missing."""
    client.cmd_fake = lambda: None
    help_str = client.get_commands()
    assert "fake" in help_str
Example #4
0
def test_bad_docs():
    """Make sure help works even if docblocks are missing."""
    client.cmd_fake = lambda: None
    help_str = client.get_commands()
    assert "fake" in help_str