def send_keys_wait_assert_choice_number(self, key, choice):
    old_hilight = self.hilighted_choice()
    self.send_keys([key])
    ui.WebDriverWait(self.selenium, WAIT_TIME).until((lambda x: (old_hilight != self.hilighted_choice())))
    self.assertSameChoice(self.hilighted_choice(), self.autocomplete_choices()[choice])
def send_keys_wait_assert_choice_number(self, key, choice):
    old_hilight = self.hilighted_choice()
    self.send_keys([key])
    ui.WebDriverWait(self.selenium, WAIT_TIME).until((lambda x: (old_hilight != self.hilighted_choice())))
    self.assertSameChoice(self.hilighted_choice(), self.autocomplete_choices()[choice])