Mocked Popen.