def test_can_add_list(self): p = Pypher() one = 1 two = 2 three = 3 p.List(one, two, three) c = str(p) params = p.bound_params exp = '[${one}, ${two}, ${three}]'.format(one=get_dict_key(params, one), two=get_dict_key(params, two), three=get_dict_key(params, three)) self.assertEqual(exp, c) self.assertEqual(3, len(params))