Ejemplo n.º 1
0
 def test(self):
     """Dictionary test method"""
     s = Dictionary()
     for i in range(21):
         s[i] = str(i)
     self.assertEqual(s.__values__(), [
         '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
         '13', '14', '15', '16', '17', '18', '19', '20'
     ])
Ejemplo n.º 2
0
 def test(self):
     """Dictionary test method"""
     s = Dictionary()
     s[1] = "one"
     s[2] = "two"
     s[3] = "three"
     s[4] = "four"
     s[5] = "five"
     self.assertEqual(s.__values__(),
                      ['one', 'two', 'three', 'four', 'five'])
Ejemplo n.º 3
0
 def test(self):
     """Dictionary test method"""
     s = Dictionary()
     self.assertEqual(s.__values__(), [])