def test_element_selected_when_not_selected(self): self.marionette.navigate(unselected_element) el = self.marionette.find_element(By.TAG_NAME, "option") unselected = expected.element_selected(el)(self.marionette) self.assertFalse(unselected)
def test_element_selected(self): self.marionette.navigate(selected_element) el = self.marionette.find_element(By.TAG_NAME, "option") selected = expected.element_selected(el)(self.marionette) self.assertTrue(selected)