def test_can_call_LABELS_predefined_function(self): p = Pypher() p.LABELS('test') string = str(p) params = p.bound_params expected = 'labels(${})'.format(get_dict_key(params, 'test')) self.assertEqual(1, len(params)) self.assertEqual(expected, string)