gae-sessions icon indicating copy to clipboard operation
gae-sessions copied to clipboard

Failing tests

Open john2x opened this issue 10 years ago • 0 comments

I just cloned the repo and ran nosetest . inside the tests directory.

Here's a stacktrace of the failure:

Traceback (most recent call last):
  File "/Users/john/.virtualenvs/collabspot/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/john/Projects/python/gae-sessions/tests/test_gaesessions.py", line 75, in check_correct_usage
    st.noop()
  File "/Users/john/Projects/python/gae-sessions/tests/SessionTester.py", line 232, in noop
    self.finish_request_and_check()
  File "/Users/john/Projects/python/gae-sessions/tests/SessionTester.py", line 151, in finish_request_and_check
    resp = self.app.post('/', dict(rpcs=b64encode(pickle.dumps(self.rpcs)), api_statuses=b64encode(pickle.dumps(self.api_statuses))))
  File "/Users/john/Projects/python/gae-sessions/tests/webtest/__init__.py", line 209, in post
    content_type=content_type)
  File "/Users/john/Projects/python/gae-sessions/tests/webtest/__init__.py", line 189, in _gen_request
    expect_errors=expect_errors)
  File "/Users/john/Projects/python/gae-sessions/tests/SessionTester.py", line 59, in do_request
    ret = super(AppWithMultipleClients, self).do_request(req, status, expect_errors)
  File "/Users/john/Projects/python/gae-sessions/tests/webtest/__init__.py", line 361, in do_request
    res.body
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webob-1.2.3/webob/response.py", line 361, in _body__get
    % (self.content_length, len(body))
AssertionError: Content-Length is different from actual app_iter length (0!=224)
    "Content-Length is different from actual app_iter length "
    "(%r!=%r)"
>>  % (self.content_length, len('KChscDAKTmFjY29weV9yZWcKX3JlY29uc3RydWN0b3IKcDEKKGNtYWluClNlc3Npb25TdGF0ZQpwMgpjX19idWlsdGluX18Kb2JqZWN0CnAzCk50cDQKUnA1CihkcDYKUydpbl9tYycKcDcKSTAwCnNTJ2luX2RiJwpwOApJMDAKc1MnZGF0YScKcDkKKGRwMTAKc1Mnc2lkJwpwMTEKTnNidHAxMgou'))

OS X 10.9 with AppEngine SDK 1.9.17 and Python 2.7

john2x avatar Jan 19 '15 00:01 john2x