def METHOD_NAME(self):
    assert_equal(self.dd[2], 'y')
    assert_equal(self.dd.x, 3)
    assert_raises(KeyError, self.dd.__getitem__, 'nonex')
    assert_raises(AttributeError, self.dd.__getattr__, 'nonex')