'Ensure that a collection with a specified name may be used.'

def test_collection_name_and_primary(self):

    class Person(Document, ):
        name = StringField(primary_key=True)
        meta = {'collection': 'app'}
    Person(name='Test    User').save()
    user_obj = Person.objects.first()
    self.assertEqual(user_obj.name, 'Test    User')
    Person.drop_collection()
