'If pep8 finds errors, pylint and eslint should still be run'

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

    _mock_pep8_violations = MagicMock(return_value=(1, ['lms/envs/common.py:32:2:    E225    missing    whitespace    around    operator']))
    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)
