Esempio n. 1
0
    def test_can_use_AND_conditional_alias(self):
        p = Pypher()
        p.COND_AND(1, 2, 3)

        s = str(p)
        params = p.bound_params
        exp = '(${one} AND ${two} AND ${three})'.format(one=get_dict_key(params, 1),
            two=get_dict_key(params, 2), three=get_dict_key(params, 3))

        self.assertEqual(exp, s)
        self.assertEqual(3, len(params))