title: How change `setup.py test` to use different Pypi server?
body: <p>Currently I have <code>~/.pypirc</code> file like this:</p>
  
  <pre><code>[distutils]
  index-servers=
      mypypi
  
  [mypypi]
  repository = http://192.168.100.101:8080/simple
  username = awesome_user
  password = awesome_pass
  </code></pre>
  
  <p>Also I have <code>/etc/pip.conf</code> file:</p>
  
  <pre><code>[global]
  index-url = https://192.168.100.101:8080/simple/
  allow-external = true
  allow-unverified = true
  </code></pre>
  
  <p>In <a href="http://pythonhosted.org/setuptools/setuptools.html#declaring-dependencies" rel="nofollow">setuptools</a> documentation we can read:</p>
  
  <blockquote>
    <p>When your project is installed, either by using EasyInstall, setup.py
    install, or setup.py develop, all of the dependencies not already
    installed will be located (via PyPI), downloaded, built (if
    necessary), and installed.</p>
  </blockquote>
  
  <p>I can successfully deploy a package but problem is when trying to do <code>setup.py test</code>, it trying to get dependencies from <code>pypi.org</code> not <code>mypypi</code>.</p>
  
  <pre><code>running test
  Searching for fancy_super_lib
  Reading https://pypi.python.org/simple/fancy_super_lib/
  Couldn't find index page for 'fancy_super_lib' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading https://pypi.python.org/simple/
  No local packages or download links found for fancy_super_lib
  error: Could not find suitable distribution for Requirement.parse('fancy_super_lib')
  </code></pre>
  
  <p>How to change this behaviour?</p>