2018-10-17 11:57:21 +11:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import pytest
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from .TorGuiShareTest import TorGuiShareTest
|
|
|
|
|
2019-10-12 21:01:25 -07:00
|
|
|
|
2018-10-17 11:57:21 +11:00
|
|
|
class ShareModeTorConnectionKilledTest(unittest.TestCase, TorGuiShareTest):
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
2019-10-12 21:01:25 -07:00
|
|
|
test_settings = {}
|
2018-10-17 16:31:51 +11:00
|
|
|
cls.gui = TorGuiShareTest.set_up(test_settings)
|
2018-10-17 11:57:21 +11:00
|
|
|
|
2019-01-15 21:52:42 -08:00
|
|
|
@pytest.mark.gui
|
2018-10-17 11:57:21 +11:00
|
|
|
@pytest.mark.tor
|
2019-10-12 21:01:25 -07:00
|
|
|
@pytest.mark.skipif(pytest.__version__ < "2.9", reason="requires newer pytest")
|
2018-10-17 11:57:21 +11:00
|
|
|
def test_gui(self):
|
|
|
|
self.run_all_common_setup_tests()
|
|
|
|
self.run_all_share_mode_setup_tests()
|
|
|
|
self.run_all_share_mode_started_tests(False)
|
|
|
|
self.tor_killed_statusbar_message_shown(self.gui.share_mode)
|
|
|
|
self.server_is_stopped(self.gui.share_mode, False)
|
|
|
|
self.web_server_is_stopped()
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|