def test_success(self): assert pyflakes.check_path(str(TEST_PATH / 'sample/flake_ok.py'))
def test_failure(self): assert not pyflakes.check_path(str(TEST_PATH / 'sample/flake_fail.py'))