コード例 #1
0
 def test(self):
     """Dictionary test method"""
     s = Dictionary()
     s[1] = "one"
     s[2] = "two"
     s[3] = "three"
     s[4] = "four"
     r = Dictionary()
     r[1] = "one"
     r[2] = "two"
     r[3] = "three"
     r[4] = "four"
     r[5] = "five"
     self.assertFalse(s.__eq__(r))
コード例 #2
0
 def test(self):
     """Dictionary test method"""
     s = Dictionary()
     r = Dictionary()
     r[1] = "one"
     self.assertFalse(s.__eq__(r))
コード例 #3
0
 def test(self):
     """Dictionary test method"""
     s = Dictionary()
     r = Dictionary()
     self.assertTrue(s.__eq__(r))