'Test search within timestamp range with a given namespace set'

def test_search_namespaces(self):

    for ns in self.namespaces_inc:
        for i in range(100):
            self.choosy_docman.upsert({'_id': i}, ns, i)
    results = list(self.choosy_docman.search(0, 49))
    self.assertEqual(len(results), 100)
    for r in results:
        self.assertGreaterEqual(r[self.id_field], 0)
