'Ensure that required field constraints are enforced.'

def test_required_values(self):

    class Person(Document, ):
        name = StringField(required=True)
        age = IntField(required=True)
        userid = StringField()
    person = Person(name='Test    User')
    self.assertRaises(ValidationError, person.validate)
    person = Person(age=30)
    self.assertRaises(ValidationError, person.validate)
