def assertSameChoice(self, autocomplete_choice, deck_choice):
    if (autocomplete_choice.get_attribute('data-value') != deck_choice.get_attribute('data-value')):
        self.fail('Choices have different data-value')
    if (autocomplete_choice.text not in deck_choice.text):
        self.fail('Choices have different text')
def assertSameChoice(self, autocomplete_choice, deck_choice):
    if (autocomplete_choice.get_attribute('data-value') != deck_choice.get_attribute('data-value')):
        self.fail('Choices have different data-value')
    if (autocomplete_choice.text not in deck_choice.text):
        self.fail('Choices have different text')