mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-25 23:21:45 +03:00
27 lines
779 B
Python
27 lines
779 B
Python
|
import datetime
|
||
|
|
||
|
from tests.uitests import utils as uiutils
|
||
|
|
||
|
|
||
|
class VMMCLI(uiutils.UITestCase):
|
||
|
"""
|
||
|
UI tests for virt-manager's command line --show options
|
||
|
"""
|
||
|
|
||
|
##############
|
||
|
# Test cases #
|
||
|
##############
|
||
|
|
||
|
def testAbout(self):
|
||
|
uiutils.find_pattern(self.app.root, "Help", "menu").click()
|
||
|
uiutils.find_pattern(self.app.root, "About", "menu item").click()
|
||
|
win = uiutils.find_fuzzy(self.app.root, "About", "dialog")
|
||
|
l = uiutils.find_fuzzy(win, "Copyright", "label")
|
||
|
|
||
|
curyear = datetime.datetime.today().strftime("%Y")
|
||
|
if curyear not in l.text:
|
||
|
print("Current year=%s not in about.ui dialog!" % curyear)
|
||
|
|
||
|
win.keyCombo("<ESC>")
|
||
|
uiutils.check_in_loop(lambda: win.visible is False)
|