From 7f85f65ba793d8c53dd0f6d37f679303f266014a Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Tue, 26 Jul 2016 12:12:40 +0100 Subject: [PATCH] Fix tests --- graphene/core/classtypes/tests/test_objecttype.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphene/core/classtypes/tests/test_objecttype.py b/graphene/core/classtypes/tests/test_objecttype.py index b3435179..ba20928d 100644 --- a/graphene/core/classtypes/tests/test_objecttype.py +++ b/graphene/core/classtypes/tests/test_objecttype.py @@ -58,9 +58,11 @@ def test_object_type_set_private_attributes(): class Human(ObjectType): _private_state = None - h = Human(_private_state='custom', _other_private_state='custom') + h = Human(_private_state='custom') assert h._private_state == 'custom' - assert h._other_private_state == 'custom' + + with raises(TypeError): + Human(_other_private_state='My name') def test_object_type_container_invalid_kwarg(): class Human(ObjectType):