def METHOD_NAME(self):
    with open(self.f.name, 'w') as f:
        f.write("hello\nhithere")
    num = len(pavelib.quality._pep8_violations(f.name))  # pylint: disable=protected-access
    assert num == 2