Adds test for pyinstaller indicator

This commit is contained in:
Nikhil Soni 2017-02-19 19:15:36 +05:30
parent 2a461d6b39
commit ed084f5413

View File

@ -1,11 +1,13 @@
import io
import subprocess
import sys
from unittest import mock
from mitmproxy.utils import debug
def test_dump_system_info():
setattr(sys, 'frozen', True)
assert debug.dump_system_info()
with mock.patch('subprocess.check_output') as m: