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))
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])))
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])))