Example #1
0
 def test_map_iter(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     list = []
     for key in map:
         list.append(key)
     self.assertEqual([5,6], sorted(list))
Example #2
0
 def test_map_iter(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     list = []
     for key in map:
         list.append(key)
     self.assertEqual([5,6], sorted(list))
Example #3
0
 def test_map_len(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     self.assertEqual(2, len(map))
Example #4
0
 def test_map_len(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     self.assertEqual(2, len(map))
Example #5
0
 def test_map_len(self):
     map = gpstk.map_int_string()
     map[5] = "five"
     map[6] = "six"
     self.assertEqual(2, len(map))