Example #1
0
def test_help():
    """Calls itself 'nosetests', but reports
    proper help message otherwise.
    """
    try:
        mod.main(['prog', '--help'])
    except SystemExit:
        pass
Example #2
0
def test_help():
    """Can be called 'pytest' or something, but reports
    proper help message otherwise.
    """
    try:
        mod.main(['prog', '--help'])
    except SystemExit:
        pass
Example #3
0
def test_help():
    """Calls itself 'nosetests', but reports
    proper help message otherwise.
    """
    try:
        mod.main(['prog', '--help'])
    except SystemExit:
        pass
Example #4
0
def test_help():
    try:
        mod.main(["prog", "--help"])
    except SystemExit:
        pass
Example #5
0
def test_help():
    try:
        mod.main(*['prog', '--help'])
    except SystemExit:
        pass
Example #6
0
from __future__ import absolute_import

from falcon_kit.mains.ovlp_filter import main
import sys

if __name__ == "__main__":
    main(sys.argv)
Example #7
0
from falcon_kit.mains.ovlp_filter import main
import sys

if __name__ == "__main__":
    main(*sys.argv)