Skip to content

Commit

Permalink
Add tests for doc debugging command
Browse files Browse the repository at this point in the history
  • Loading branch information
iafisher committed Jul 12, 2019
1 parent b81db41 commit 29024cd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,22 @@ def test_handle_print_abbreviated(shell):
assert len(kwargs) == 0


def test_handle_doc(shell, capsys):
shell.handle_command("doc")

out = capsys.readouterr().out
assert "SET" in out


def test_handle_doc_with_arguments(shell, capsys):
shell.handle_command("doc ADD xor Buler")

out = capsys.readouterr().out
assert "ADD" in out
assert "XOR" in out
assert "BULER" in out


def test_handle_help(shell, capsys):
shell.handle_command("help")

Expand Down

0 comments on commit 29024cd

Please sign in to comment.