def test_get_elements_text_and_html_by_attribute(self):
    html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
    self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'foo bar', html)), list(zip(['nice', 'also nice'], self.GET_ELEMENTS_BY_CLASS_RES)))
    self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'foo', html)), [])
    self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'no-such-foo', html)), [])
def test_get_elements_text_and_html_by_attribute(self):
    html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
    self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'foo bar', html)), list(zip(['nice', 'also nice'], self.GET_ELEMENTS_BY_CLASS_RES)))
    self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'foo', html)), [])
    self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'no-such-foo', html)), [])