import unittest

from flake8.api.legacy import get_style_guide

class TestFlake8Compliance(unittest.TestCase):
    def test_flake8(self):
        style_guide = get_style_guide()
        report = style_guide.check_files()
        self.assertEqual(report.get_statistics('F'), [])

@@ -214,16 +214,73 @@
 files()%0A
+        self.assertEqual(report.get_statistics('E'), %5B%5D)%0A
         

Test both error codes.