Пример #1
0
 def test_get_symbol_map(self, keys_values):
     keys, values = keys_values
     gm = GodMap()
     for key, value in zip(keys, values):
         gm.set_data([key], value)
         gm.to_symbol([key])
     self.assertEqual(len(gm.get_values(keys)), len(keys))
Пример #2
0
 def test_to_symbol(self, key, value):
     gm = GodMap()
     gm.set_data([key], value)
     self.assertTrue(w.is_symbol(gm.to_symbol([key])))
     self.assertTrue(key in str(gm.to_symbol([key])))
Пример #3
0
 def test_to_symbol(self, key, value):
     gm = GodMap()
     gm.set_data([key], value)
     self.assertTrue(isinstance(gm.to_symbol([key]), sw.Symbol))
     self.assertTrue(key in str(gm.to_symbol([key])))