PyBitmessage-2021-04-27/src/graphicaltesting/test_networkstatus.py

17 lines
490 B
Python

"""Test for network window"""
from PyQt4.QtTest import QTest
from testloader import BitmessageTestCase
class BitmessageTest_NetworkTest(BitmessageTestCase):
"""Switch to network tab and test"""
def test_network(self):
"""Switch to network window"""
QTest.qWait(1000)
self.myapp.ui.tabWidget.setCurrentWidget(self.myapp.ui.networkstatus)
QTest.qWait(1200)
print("\n Test Pass :--> Network Functionality Working Well! \n")
return 1