def test_fromkeys_returns_our_type(): d = AttrDict.fromkeys(['scotch', 'rye', 'bourbon'], "whiskey") assert d.__class__ is AttrDict