rjnienaber/simverest — pull request #1 by msabramo (2012-07-10 15:59:28+00:00)
Title: Add support for tox (http://tox.testrun.org/)

Note that tox is currently failing with the same errors that Travis CI builds are (looks like timezone problems):

```
~/dev/git-repos/simverest$ tox -e py27
GLOB sdist-make: /Users/marca/dev/git-repos/simverest/setup.py
py27 sdist-reinst: /Users/marca/dev/git-repos/simverest/.tox/dist/simverest-0.0.0.zip
py27 runtests: commands[0]
py27 runtests: commands[1]
...................F..........FF.........F
======================================================================
FAIL: test_should_return_all_backends (tests.tests_data.test_serverstate.ServerStateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marca/dev/git-repos/simverest/.tox/py27/lib/python2.7/site-packages/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/marca/dev/git-repos/simverest/src/tests/tests_data/test_serverstate.py", line 164, in test_should_return_all_backends
self.assertEquals(expected, backends)
AssertionError: {'backends': [{'status_code': '200', 'state': 'healthy', 'status_text': 'OK', 'n [truncated]... != {'backends': [{'status_code': '200', 'state': 'healthy', 'status_text': 'OK', 'n [truncated]...
Diff is 700 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_should_update_backend_state (tests.tests_data.test_serverstate.ServerStateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marca/dev/git-repos/simverest/.tox/py27/lib/python2.7/site-packages/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/marca/dev/git-repos/simverest/src/tests/tests_data/test_serverstate.py", line 36, in test_should_update_backend_state
backend_state)
AssertionError: {'status_code': '200', 'state': 'healthy', 'status_text': 'OK', 'name': 'web2', [truncated]... != {'status_code': '200', 'state': 'healthy', 'status_text': 'OK', 'name': 'web2', [truncated]...
{'name': 'web2',
'state': 'healthy',
'status_code': '200',
'status_text': 'OK',
- 'timestamp': '2011-09-30T23:00:00Z'}
? - - ^^

+ 'timestamp': '2011-10-01T07:00:00Z'}
? + + ^^

======================================================================
FAIL: test_should_update_existing_backend_state (tests.tests_data.test_serverstate.ServerStateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marca/dev/git-repos/simverest/.tox/py27/lib/python2.7/site-packages/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/marca/dev/git-repos/simverest/src/tests/tests_data/test_serverstate.py", line 54, in test_should_update_existing_backend_state
backend_state)
AssertionError: {'status_code': '500', 'state': 'sick', 'status_text': 'Internal Server Error', [truncated]... != {'status_code': '500', 'state': 'sick', 'status_text': 'Internal Server Error', [truncated]...
{'name': 'web2',
'state': 'sick',
'status_code': '500',
'status_text': 'Internal Server Error',
- 'timestamp': '2011-09-30T23:00:00Z'}
? - - ^^

+ 'timestamp': '2011-10-01T07:00:00Z'}
? + + ^^

======================================================================
FAIL: test_should_return_response_with_no_headers_set (tests.tests_web.test_middleware.NoCacheMiddlewareTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marca/dev/git-repos/simverest/.tox/py27/lib/python2.7/site-packages/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/marca/dev/git-repos/simverest/src/tests/tests_web/test_middleware.py", line 110, in test_should_return_response_with_no_headers_set
self.assertEquals(headers, response_headers)
AssertionError: Lists differ: [('Content-Length', '2'), ('Ca... != [('Content-Length', '2'), ('Ca...

First differing element 2:
('Expires', 'Fri, 30 Sep 2011 23:00:00 UTC')
('Expires', 'Sat, 01 Oct 2011 07:00:00 UTC')

[('Content-Length', '2'),
('Cache-Control', 'max-age=0,no-cache,no-store,post-check=0,pre-check=0'),
- ('Expires', 'Fri, 30 Sep 2011 23:00:00 UTC')]
? ^^^ - ^^^^ ^^

+ ('Expires', 'Sat, 01 Oct 2011 07:00:00 UTC')]
? ^^^ ^^^^^ ^^

----------------------------------------------------------------------
Ran 42 tests in 0.045s

FAILED (failures=4)
ERROR: InvocationError: '/Users/marca/dev/git-repos/simverest/.tox/py27/bin/python src/tests/runner.py'
_________________________________________________________________________ summary __________________________________________________________________________
ERROR: py27: commands failed
```