def test_xhr_pending(self):
    self.send_keys('ja')
    self.selenium.find_element_by_css_selector(('input[name=%s-autocomplete]' % self.autocomplete_name))
    self.selenium.find_element_by_css_selector(('input:not(.xhr-pending)[name=%s-autocomplete]' % self.autocomplete_name))
def test_xhr_pending(self):
    self.send_keys('ja')
    self.selenium.find_element_by_css_selector(('input[name=%s-autocomplete]' % self.autocomplete_name))
    self.selenium.find_element_by_css_selector(('input:not(.xhr-pending)[name=%s-autocomplete]' % self.autocomplete_name))