def test_search_attribute(self): """should return True""" result = search(self.e2, "tag", "asdf") self.assertTrue(result)
def test_search_noresult(self): """should return False""" result = search(self.e1, "foo", "baz") self.assertFalse(result)
def test_search_meta(self): """should return True""" result = search(self.e1, "title", "foo") self.assertTrue(result)