本文整理汇总了Python中gaiatest.apps.calendar.app.Calendar.a11y_click_other_day方法的典型用法代码示例。如果您正苦于以下问题:Python Calendar.a11y_click_other_day方法的具体用法?Python Calendar.a11y_click_other_day怎么用?Python Calendar.a11y_click_other_day使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.calendar.app.Calendar
的用法示例。
在下文中一共展示了Calendar.a11y_click_other_day方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestCalendarMonthViewSelectDayAccessibility
# 需要导入模块: from gaiatest.apps.calendar.app import Calendar [as 别名]
# 或者: from gaiatest.apps.calendar.app.Calendar import a11y_click_other_day [as 别名]
class TestCalendarMonthViewSelectDayAccessibility(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.today = datetime.date.today()
self.previous_day = self.today - datetime.timedelta(days=1)
self.next_day = self.today + datetime.timedelta(days=1)
self.calendar = Calendar(self.marionette)
self.calendar.launch()
def test_a11y_calendar_month_view_select_day(self):
WEEKDAY_MONTH_DAY_PATTERN = '%A, %b %-d'
# By default current date event list should be rendered.
self.assertEquals(self.today.strftime(WEEKDAY_MONTH_DAY_PATTERN).upper(),
self.calendar.event_list_date)
# Click on another day in the grid.
other_day = self.calendar.a11y_click_other_day(self.next_day, self.previous_day)
# Other day date's event list should be rendered.
self.assertEquals(other_day.strftime(WEEKDAY_MONTH_DAY_PATTERN).upper(),
self.calendar.event_list_date)