ImportError: No module named mock
<p>So I am trying to use unittest.mock to mock some of my methods in my unit tests. I do:</p>

<pre><code>from unittest.mock import MagicMock
f = open("data/static/mock_ffprobe_response")
subprocess.check_output = MagicMock(return_value=f.read())
f.close()
</code></pre>

<p>But I am getting:</p>

<pre><code>ImportError: No module named mock
</code></pre>

<p>I tried:</p>

<pre><code>pip install mock
</code></pre>

<p>It's still not working.</p>
