'If diff-quality fails on pylint, the paver task should also fail'

@patch('__builtin__.open', mock_open())
def test_failure_on_diffquality_pylint(self):

    self._mock_paver_sh.side_effect = fail_on_pylint
    _mock_pep8_violations = MagicMock(return_value=(0, []))
    with patch('pavelib.quality._get_pep8_violations', _mock_pep8_violations):
        with self.assertRaises(SystemExit):
            pavelib.quality.run_quality('')
    self.assertEqual(_mock_pep8_violations.call_count, 1)
    self.assertEqual(self._mock_paver_sh.call_count, 2)
