Choice field test updated

This commit is contained in:
Viktor Kerkez 2010-11-11 18:19:00 +01:00 committed by Viktor Kerkez
parent e1282028a5
commit 9c8411b251
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,5 +7,6 @@ build/
dist/
mongoengine.egg-info/
env/
.settings
.project
.pydevproject

View File

@ -644,7 +644,8 @@ class FieldTest(unittest.TestCase):
"""Ensure that value is in a container of allowed values.
"""
class Shirt(Document):
size = StringField(max_length=3, choices=('S','M','L','XL','XXL'))
size = StringField(max_length=3, choices=(('S', 'Small'), ('M', 'Medium'), ('L', 'Large'),
('XL', 'Extra Large'), ('XXL', 'Extra Extra Large')))
Shirt.drop_collection()