From 9c8411b251ab0557063fc60d50c32c888f55c613 Mon Sep 17 00:00:00 2001 From: Viktor Kerkez Date: Thu, 11 Nov 2010 18:19:00 +0100 Subject: [PATCH] Choice field test updated --- .gitignore | 1 + tests/fields.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d2927298..d67429a2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,6 @@ build/ dist/ mongoengine.egg-info/ env/ +.settings .project .pydevproject \ No newline at end of file diff --git a/tests/fields.py b/tests/fields.py index 5602cdec..034ec61e 100644 --- a/tests/fields.py +++ b/tests/fields.py @@ -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()