Removed pool_size from connect, minor tidyup
This commit is contained in:
		| @@ -21,7 +21,7 @@ class QuerySetTest(unittest.TestCase): | ||||
|         """Ensure that a QuerySet is correctly initialised by QuerySetManager. | ||||
|         """ | ||||
|         self.assertTrue(isinstance(self.Person.objects, QuerySet)) | ||||
|         self.assertEqual(self.Person.objects._collection.name(),  | ||||
|         self.assertEqual(self.Person.objects._collection.name,  | ||||
|                          self.Person._meta['collection']) | ||||
|         self.assertTrue(isinstance(self.Person.objects._collection, | ||||
|                                    pymongo.collection.Collection)) | ||||
| @@ -294,6 +294,8 @@ class QuerySetTest(unittest.TestCase): | ||||
|         BlogPost.drop_collection() | ||||
|  | ||||
|     def test_q(self): | ||||
|         """Ensure that Q objects may be used to query for documents. | ||||
|         """ | ||||
|         class BlogPost(Document): | ||||
|             publish_date = DateTimeField() | ||||
|             published = BooleanField() | ||||
| @@ -618,6 +620,8 @@ class QuerySetTest(unittest.TestCase): | ||||
| class QTest(unittest.TestCase): | ||||
|      | ||||
|     def test_or_and(self): | ||||
|         """Ensure that Q objects may be combined correctly. | ||||
|         """ | ||||
|         q1 = Q(name='test') | ||||
|         q2 = Q(age__gte=18) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user