pypug/django-mango — pull request #1 by msabramo (2012-07-11 16:23:57+00:00)
Title: Add support for tox (http://tox.testrun.org/)

I'm not totally happy with what I had to do with `setup.py` (copy title, version, and info from `mango/mango/__init__.py`, because it introduces duplication), but the `from mango import mango` stuff causes problems installing the package from an sdist.

I can't think of a better solution at the moment. It will be easier to try stuff out and find a workable solution with the ability to run tox to do quick tests, so I'd suggest merging this and then trying to refactor out the duplication.

Sample tox output:

```
marca@SCML-MarcA:~/dev/git-repos/django-mango$ tox
GLOB sdist-make: /Users/marca/dev/git-repos/django-mango/setup.py
py26 sdist-reinst: /Users/marca/dev/git-repos/django-mango/.tox/dist/django-mango-0.1-dev.zip
py26 runtests: commands[0]
Creating test database for alias 'default'...
....
----------------------------------------------------------------------
Ran 4 tests in 0.975s

OK
Destroying test database for alias 'default'...
py27 sdist-reinst: /Users/marca/dev/git-repos/django-mango/.tox/dist/django-mango-0.1-dev.zip
py27 runtests: commands[0]
Creating test database for alias 'default'...
....
----------------------------------------------------------------------
Ran 4 tests in 1.112s

OK
Destroying test database for alias 'default'...
_________________________________________________________________________ summary __________________________________________________________________________
py26: commands succeeded
py27: commands succeeded
congratulations :)
```