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