#!/usr/bin/env python
import subprocess
import pytest


def test_findtext():
    ret = subprocess.check_output(['findtext', 'import'], universal_newlines=True)

    assert isinstance(ret, str)
    assert len(ret) > 0


if __name__ == '__main__':
    pytest.main(['-x', __file__])

@@ -47,16 +47,68 @@
  pytest%0A
+from pathlib import Path%0A%0AR = Path(__file__).parent%0A
 %0A%0Adef te
@@ -203,16 +203,23 @@
 nes=True
+, cwd=R
 )%0A%0A    a

test use specific directory in case of varying systems