'Test to verify CQL output for functions with zero parameters
Creates a function with no input parameters, verify that CQL output is correct.
@since 2.7.1
@jira_ticket PYTHON-392
@expected_result function with no parameters should generate proper CQL
@test_category function'

def test_function_no_parameters(self):

    kwargs = self.make_function_kwargs()
    kwargs['argument_types'] = []
    kwargs['argument_names'] = []
    kwargs['return_type'] = 'bigint'
    kwargs['body'] = 'return    System.currentTimeMillis()    /    1000L;'
    with self.VerifiedFunction(self, **kwargs) as vf:
        fn_meta = self.keyspace_function_meta[vf.signature]
        self.assertRegexpMatches(fn_meta.as_cql_query(), ('CREATE    FUNCTION.*%s\\(\\)    .*' % kwargs['name']))
