fix linting issues

This commit is contained in:
Markus Padourek 2016-07-26 12:16:48 +01:00 committed by GitHub
parent 7f85f65ba7
commit a7d7f95b86

View File

@ -54,16 +54,18 @@ def test_object_type_set_properties():
assert h.readonly_prop == 'readonly'
assert h.write_prop == 'custom'
def test_object_type_set_private_attributes():
class Human(ObjectType):
_private_state = None
h = Human(_private_state='custom')
assert h._private_state == 'custom'
with raises(TypeError):
Human(_other_private_state='My name')
def test_object_type_container_invalid_kwarg():
class Human(ObjectType):
name = String()