def test_create_path_if_not_exists(in_tmpdir): instance = PrefixedCommandRunner('foo') assert not os.path.exists('foo') instance._create_path_if_not_exists() assert os.path.exists('foo')