示例#1
0
from xssnotifier.main import main

main()
def test_main(mock_start, mock_listen):
    main()

    assert mock_listen.call_count == 1, 'Not listening once'
    assert mock_start.call_count == 1, 'Not started once'