def test_budg_filter_opts(self, selenium):
self.get(selenium, self.baseurl + '/transactions')
budg_filter = Select(selenium.find_element_by_id('budget_filter'))
# find the options
opts = []
for o in budg_filter.options:
opts.append([o.get_attribute('value'), o.text])
assert opts == [
['None', ''],
['7', 'Income (income)'],
['1', 'Periodic1'],
['2', 'Periodic2'],
['3', 'Periodic3 Inactive'],
['4', 'Standing1'],
['5', 'Standing2'],
['6', 'Standing3 Inactive']
]
评论列表
文章目录