'Make sure adding a comment to the query works.'

def test_comment(self):

    class User(Document, ):
        age = IntField()
    with db_ops_tracker() as q:
        adult = User.objects.filter(age__gte=18).comment('looking    for    an    adult').first()
        ops = q.get_ops()
        self.assertEqual(len(ops), 1)
        op = ops[0]
        self.assertEqual(op['query']['$query'], {'age': {'$gte': 18}})
        self.assertEqual(op['query']['$comment'], 'looking    for    an    adult')
