本文整理匯總了Python中widgetastic_patternfly.Dropdown.read方法的典型用法代碼示例。如果您正苦於以下問題:Python Dropdown.read方法的具體用法?Python Dropdown.read怎麽用?Python Dropdown.read使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類widgetastic_patternfly.Dropdown
的用法示例。
在下文中一共展示了Dropdown.read方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_custom_button_text_display
# 需要導入模塊: from widgetastic_patternfly import Dropdown [as 別名]
# 或者: from widgetastic_patternfly.Dropdown import read [as 別名]
def test_custom_button_text_display(appliance, context, serv_button_group, service):
""" Test custom button text display on option
Polarion:
assignee: ndhandre
initialEstimate: 1/6h
caseimportance: medium
caseposneg: positive
testtype: functional
startsin: 5.9
casecomponent: CustomButton
tags: custom_button
testSteps:
1. Appliance with Service
2. Create custom button `Group` or `Button` without display option
3. Check Group/Button text display or not on UI and SSUI.
Bugzilla:
1650066
1659452
"""
my_service = MyService(appliance, name=service.name)
button, group = serv_button_group
with appliance.context.use(context):
navigate_to = ssui_nav if context is ViaSSUI else ui_nav
destinations = (
["Details"]
if (BZ(1650066).blocks and context is ViaSSUI)
else ["All", "Details"]
)
for destination in destinations:
view = navigate_to(my_service, destination)
custom_button_group = Dropdown(view, group.text)
if group.display is True:
assert "" in custom_button_group.items
else:
assert custom_button_group.read() == ""