1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env python3 from helpers import * def test_invalid_command(): cmd = grm(["whatever"], is_invalid=True) assert "USAGE" in cmd.stderr def test_help(): cmd = grm(["--help"]) assert "USAGE" in cmd.stdout