@pytest.fixture()
def mock_isdir(monkeypatch):
    ret = mock.Mock()
    monkeypatch.setattr(os.path, 'isdir', ret)
    return ret
@pytest.fixture()
def mock_isdir(monkeypatch):
    ret = mock.Mock()
    monkeypatch.setattr(os.path, 'isdir', ret)
    return ret