'Ensure that use_db_field is propagated to list of Emb Docs.'

def test_embedded_document_complex_instance_no_use_db_field(self):

    class Embedded(EmbeddedDocument, ):
        string = StringField(db_field='s')
    class Doc(Document, ):
        embedded_field = ListField(EmbeddedDocumentField(Embedded))
    d = Doc(embedded_field=[Embedded(string='Hi')]).to_mongo(use_db_field=False).to_dict()
    self.assertEqual(d['embedded_field'], [{'string': 'Hi'}])
