#!/usr/bin/python3 import os import os.path assert not os.path.exists("/proc/void") import mockito mockito.when(os.path).exists("/proc/void").thenReturn(True) assert os.path.exists("/proc/void")