modify dict test case

This commit is contained in:
agnewee 2017-12-05 23:43:23 +08:00
parent 241f32670d
commit 9b5f333039
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ class TestAttrDict(object):
d = AttrDict(key=1)
del d.key
with pytest.raises(AttributeError):
d.key
print(d.key)
with pytest.raises(KeyError):
del d.key
def test_repr(self):
d = AttrDict()