'Verify that when rules are actually applied, no non-match groups (e.g.
\'$1\', \'$2\' etc.) will exist in the rewritten url'

def getNonmatchGroupProblems(self):

    self._determineTestApplication()
    problems = []
    for rule in self.rules:
        test_urls = map((lambda test: test.url), rule.tests)
        for test in rule.tests:
            try:
                replacement_url = rule.apply(test.url)
            except Exception as e:
                if (~ e.message.index('invalid    group    reference')):
                    problems.append(('%s:    Rules    include    non-matched    groups    in    replacement    for    url:    %s' % (self.filename, test.url)))
    return problems
