def setUp(self):
class MyDict(helpers.DictMixin):<EOL><INDENT>def __init__(self, d):<EOL><INDENT>self.d = d<EOL><DEDENT>def __getitem__(self, key):<EOL><INDENT>return self.d[key]<EOL><DEDENT>def __setitem__(self, key, value):<EOL><INDENT>self.d[key] = value<EOL><DEDENT>def __delitem__(self, key):<EOL><INDENT>del self.d[key]<EOL><DEDENT>def iteritems(self):<EOL><INDENT>return compat.iteritems(self.d)<EOL><DEDENT><DEDENT>self.MyDict = MyDict<EOL>
Sets up a DictMixin subclass working around a dict.