def test_get_elements_by_attribute(self):
    html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
    self.assertEqual(get_elements_by_attribute('class', 'foo bar', html), ['nice', 'also nice'])
    self.assertEqual(get_elements_by_attribute('class', 'foo', html), [])
    self.assertEqual(get_elements_by_attribute('class', 'no-such-foo', html), [])
def test_get_elements_by_attribute(self):
    html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
    self.assertEqual(get_elements_by_attribute('class', 'foo bar', html), ['nice', 'also nice'])
    self.assertEqual(get_elements_by_attribute('class', 'foo', html), [])
    self.assertEqual(get_elements_by_attribute('class', 'no-such-foo', html), [])