'Test getting violation counts from truncated and malformed xsslint
report.'

def test_get_xsslint_counts_bad_counts(self):

    report = textwrap.dedent('\n                                                javascript-concat-html:    violations\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': {}, 'total': None})
