def runTest(self):
     res = solr.search({
         'q' : '*:*',
         'fl' : ','.join(self.fields),
         'rows' : 2,
         'offset' : 100
         })
     self.assertEqual(len(res),2)
     for doc in res:
         for field in self.fields:
             self.assertIn(field,doc.keys())
 def runTest(self):
     res = solr.search({
         'q': '*:*',
         'fl': ','.join(self.fields),
         'rows': 2,
         'offset': 100
     })
     self.assertEqual(len(res), 2)
     for doc in res:
         for field in self.fields:
             self.assertIn(field, doc.keys())
    def runTest(self):
        res = solr.search('*:*')
        self.assertEqual(len(res),10)

        res = solr.search('id:10.1371/journal.pcbi.0010001')
        self.assertEqual(len(res),1)
 def runTest(self):
     res = solr.search()
     self.assertEqual(len(res),10)
     for doc in res:
         self.assertIn('id',doc.keys())
         self.assertIn('title',doc.keys())
    def runTest(self):
        res = solr.search('*:*')
        self.assertEqual(len(res), 10)

        res = solr.search('id:10.1371/journal.pcbi.0010001')
        self.assertEqual(len(res), 1)
 def runTest(self):
     res = solr.search()
     self.assertEqual(len(res), 10)
     for doc in res:
         self.assertIn('id', doc.keys())
         self.assertIn('title', doc.keys())