'Ensure that unallowed value are rejected upon validation'

def test_choices_validation_reject_unknown_value(self):

    class Shirt(Document, ):
        size = StringField(choices=('S', 'M'))
    shirt = Shirt(size='XS')
    with self.assertRaises(ValidationError):
        shirt.validate()
