def test_get_elements_html_by_attribute(self):
    html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
    self.assertEqual(get_elements_html_by_attribute('class', 'foo bar', html), self.GET_ELEMENTS_BY_CLASS_RES)
    self.assertEqual(get_elements_html_by_attribute('class', 'foo', html), [])
    self.assertEqual(get_elements_html_by_attribute('class', 'no-such-foo', html), [])
def test_get_elements_html_by_attribute(self):
    html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
    self.assertEqual(get_elements_html_by_attribute('class', 'foo bar', html), self.GET_ELEMENTS_BY_CLASS_RES)
    self.assertEqual(get_elements_html_by_attribute('class', 'foo', html), [])
    self.assertEqual(get_elements_html_by_attribute('class', 'no-such-foo', html), [])