'Remove the example directory from the path and remove all
modules loaded by the test from sys.modules.'

def tearDown(self):

    sys.modules.clear()
    sys.modules.update(self.originalModules)
    sys.path[:] = self.originalPath
