def test_custom_w_quoted_name_no_identifier(self): class myfunc(GenericFunction): name = quoted_name("NotMyFunc", quote=True) # note this requires that the quoted name be lower cased for # correct lookup self.assert_compile(func.notmyfunc(), '"NotMyFunc"()')
def test_custom_w_custom_name(self): class myfunc(GenericFunction): name = "notmyfunc" assert isinstance(func.notmyfunc(), myfunc) assert not isinstance(func.myfunc(), myfunc)