'Ensure that a collection with a specified name is used as expected.'

def test_custom_collection_name_operations(self):

    collection_name = 'personCollTest'
    class Person(Document, ):
        name = StringField()
        meta = {'collection': collection_name}
    Person(name='Test    User').save()
    self.assertTrue((collection_name in self.db.collection_names()))
    user_obj = self.db[collection_name].find_one()
    self.assertEqual(user_obj['name'], 'Test    User')
    user_obj = Person.objects[0]
    self.assertEqual(user_obj.name, 'Test    User')
    Person.drop_collection()
    self.assertFalse((collection_name in self.db.collection_names()))
