def generate_referral_chain(self, pages):
if not type(pages) is tuple and not type(pages) is list:<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>")<EOL><DEDENT>if len(pages) < <NUM_LIT:2>:<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>")<EOL><DEDENT>for page in pages:<EOL><INDENT>if not page_utils.is_valid_url(page):<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>" % page)<EOL><DEDENT><DEDENT>for page in pages:<EOL><INDENT>self.generate_referral(None, page)<EOL><DEDENT>
Use this method to chain the action of creating button links on
            one website page that will take you to the next page.
            (When you want to create a referral to a website for traffic
            generation without increasing the bounce rate, you'll want to visit
            at least one additional page on that site with a button click.)