'Ensure that value is in a container of allowed values.'

def test_choices_validation_accept_possible_value(self):

    class Shirt(Document, ):
        size = StringField(choices=('S', 'M'))
    shirt = Shirt(size='S')
    shirt.validate()
