Exemplo n.º 1
0
 def test_search_attribute(self):
     """should return True"""
     result = search(self.e2, "tag", "asdf")
     self.assertTrue(result)
Exemplo n.º 2
0
 def test_search_noresult(self):
     """should return False"""
     result = search(self.e1, "foo", "baz")
     self.assertFalse(result)
Exemplo n.º 3
0
 def test_search_meta(self):
     """should return True"""
     result = search(self.e1, "title", "foo")
     self.assertTrue(result)