From 09d94eb01a7b70639ebb57c5768fed61a3d6e9cc Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Wed, 18 Jan 2012 18:57:34 +0100 Subject: [PATCH] Fix the test_enum test (the error message now contains the attribute name --- wsme/tests/test_types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsme/tests/test_types.py b/wsme/tests/test_types.py index b051ca0..8b98b8a 100644 --- a/wsme/tests/test_types.py +++ b/wsme/tests/test_types.py @@ -160,7 +160,8 @@ class TestTypes(unittest.TestCase): obj.a = 'v3' assert False, 'ValueError was not raised' except ValueError, e: - assert str(e) == "Value 'v3' is invalid (should be one of: v1, v2)" + assert str(e) == \ + "a: Value 'v3' is invalid (should be one of: v1, v2)", e def test_attribute_validation(self): class AType(object):