33 lines
995 B
Python
Raw Normal View History

# This work is licensed under the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
2017-07-20 16:14:19 -04:00
from tests.uitests import utils as uiutils
2018-01-09 10:01:56 -05:00
class Host(uiutils.UITestCase):
2017-07-20 16:14:19 -04:00
"""
UI tests for virt-manager's VM details window
"""
##############
# Test cases #
##############
def testHostNetworkSmokeTest(self):
"""
Verify that each virtual network displays, without error.
"""
win = self._open_host_window("Virtual Networks")
2018-01-19 10:51:33 -05:00
lst = win.find("net-list", "table")
errlabel = win.find("net-error-label", "label")
self._walkUIList(win, lst, lambda: errlabel.showing)
2017-07-20 16:14:19 -04:00
def testHostStorageSmokeTest(self):
"""
Verify that each storage pool displays, without error.
"""
win = self._open_host_window("Storage")
2018-01-19 10:51:33 -05:00
lst = win.find("pool-list", "table")
errlabel = win.find("pool-error-label", "label")
self._walkUIList(win, lst, lambda: errlabel.showing)