Example #1
0
def test_valid_loglevel_cli_argument():
    with pytest.raises(ReactorAlreadyRunning):
        main(['-l', 'INFO'])
Example #2
0
def test_main():
    with pytest.raises(SystemExit):
        main(['-h', '-l debug'])
Example #3
0
def test_invalid_loglevel_cli_argument():
    with pytest.raises(ValueError):
        main(['-l', 'dog'])