def testValue(self): myDictTest = MyDict() myDictTest.key = 'value' self.assertTrue('key' in myDictTest) self.assertEqual(myDictTest['key'], 'value')
def test_attr(self): d = MyDict() d.key = 'value' self.assertTrue('key' in d) self.assertEqual(d['key'], 'value')
def test_attr(self): d = MyDict() d.key = 'value' self.assertTrue('key' in d)
def test_setattr2(self): d = MyDict() d.key = "value" self.assertTrue('key' in d) self.assertEqual(d['key'],"value")