'Tests if a `FieldDoesNotExist` exception is raised when
trying to instantiate a document with a field that\'s not
defined, even when strict is set to False.'

def test_undefined_field_exception_with_strict(self):

    class Doc(Document, ):
        foo = StringField()
        meta = {'strict': False}
    with self.assertRaises(FieldDoesNotExist):
        Doc(bar='test')
