'Test happy path getting violation counts from xsslint report.'

def test_get_xsslint_counts_happy(self):

    report = textwrap.dedent("\n                                                test.html:    30:53:    javascript-jquery-append:        $('#test').append(print_tos);\n\n                                                javascript-concat-html:    310    violations\n                                                javascript-escape:                        7    violations\n\n                                                2608    violations    total\n                                ")
    with open(self.f.name, 'w') as f:
        f.write(report)
    counts = pavelib.quality._get_xsslint_counts(self.f.name)
    self.assertDictEqual(counts, {'rules': {'javascript-concat-html': 310, 'javascript-escape': 7}, 'total': 2608})
