title: Get IP Address when testing flask application through nosetests
body: <p>My application depends on <code>request.remote_addr</code> which is <code>None</code> when i run tests through nosetests which uses <code>app.test_client().post('/users/login', ....)</code>.</p>
  
  <p><strong>How can I emulate an IP (127.0.0.1 works fine) when I run tests?</strong>
  I've tried setting environment variables, sent in headers with the post() method and I've digged through nosetests, werkzeugs and flasks documentation but nothing I've tried has worked.</p>