Beispiel #1
0
 def test_ethnicity_query(self):
     self.assertEqual(
         title_search(Q('ethnicity=Anabaptist'))[0],
         '+type:title +(subject:"Anabaptist" OR subject:"Amish" OR subject:"Amish Mennonites" OR subject:"Mennonites" OR subject:"Pennsylvania Dutch" OR subject:"Pennsylvania Dutch.")'
     )
Beispiel #2
0
 def test_ethnicity_query(self):
     self.assertEqual(title_search(Q('ethnicity=Anabaptist')),
             '+type:title +(subject:"Anabaptist" OR subject:"Amish" OR subject:"Amish Mennonites" OR subject:"Mennonites" OR subject:"Pennsylvania Dutch" OR subject:"Pennsylvania Dutch.")')
Beispiel #3
0
 def test_title_search(self):
     self.assertEqual(
         title_search(Q('terms=bloody'))[0],
         '+type:title +(title:"bloody" OR essay:"bloody" OR note:"bloody" OR edition:"bloody" OR place_of_publication:"bloody" OR url:"bloody" OR publisher:"bloody")'
     )
Beispiel #4
0
 def test_title_search(self):
     self.assertEqual(
         title_search(Q('terms=bloody')),
         '+type:title +(title:"bloody" OR essay:"bloody" OR note:"bloody" OR edition:"bloody" OR place_of_publication:"bloody" OR url:"bloody" OR publisher:"bloody")')