gfcapalbo / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

twitter. fails on setup test #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I did:
1. Build/Install/Test setuptools-0.6c9 (tests were fine.)
2. Build/Install/Test simplejson-2.0.9 (tests were fine.)
3. Build/Install/Test python-twitter-0.5 (2 failures)

I expected a long list of stuff saying methods and stuff that all said OK 
and then a small summary telling me it way A-OK. What I did see was a 
bunch of junk, with 2 failures. Here is my heavily edited output (I just 
cut out the OK lines):

"...
Test the twitter.Status AsJsonString method ... FAIL
...
Test the twitter.User AsJsonString method ... FAIL
...
======================================================================
FAIL: Test the twitter.Status AsJsonString method
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\administrator\desktop\python-twitter-0.5
\twitter_test.py", line
 121, in testAsJsonString
    self._GetSampleStatus().AsJsonString())
AssertionError: '{"created_at": "Fri Jan 26 23:17:14 +0000 2007", "id": 
4391023,
 "text": "A l\\u00e9gp\\u00e1rn\\u00e1s haj\\u00f3m tele van 
angoln\\u00e1kkal."
, "user": {"description": "Canvas. JC Penny. Three ninety-eight.", "id": 
718443,
 "location": "Okinawa, Japan", "name": "Kesuke 
Miyagi", "profile_image_url": "ht
tp:\\/\\/twitter.com\\/system\\/user\\/profile_image\\/718443
\\/normal\\/kesuke.
png", "screen_name": "kesuke", "url": "http:\\/
\\/twitter.com\\/kesuke"}}' != '{
"created_at": "Fri Jan 26 23:17:14 +0000 2007", "id": 4391023, "text": "A 
l\\u00
e9gp\\u00e1rn\\u00e1s haj\\u00f3m tele van angoln\\u00e1kkal.", "user": 
{"descri
ption": "Canvas. JC Penny. Three ninety-eight.", "id": 
718443, "location": "Okin
awa, Japan", "name": "Kesuke 
Miyagi", "profile_image_url": "http://twitter.com/s
ystem/user/profile_image/718443/normal/kesuke.png", "screen_name": "kesuke"
, "ur
l": "http://twitter.com/kesuke"}}'

======================================================================
FAIL: Test the twitter.User AsJsonString method
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\administrator\desktop\python-twitter-0.5
\twitter_test.py", line
 224, in testAsJsonString
    self._GetSampleUser().AsJsonString())
AssertionError: '{"description": "Indeterminate things", "id": 
673483, "location
": "San Francisco, CA", "name": "DeWitt", "profile_image_url": "http:\\/
\\/twitt
er.com\\/system\\/user\\/profile_image\\/673483
\\/normal\\/me.jpg", "screen_name
": "dewitt", "status": {"created_at": "Fri Jan 26 17:28:19 +0000 
2007", "id": 42
12713, "text": "\\"Select all\\" and archive your Gmail inbox.  The page 
loads s
o much faster!"}, "url": "http:\\/\\/unto.net\\/"}' !
= '{"description": "Indeter
minate things", "id": 673483, "location": "San Francisco, 
CA", "name": "DeWitt",
 "profile_image_url": "http://twitter.com/system/user/profile_image/673483/
norma
l/me.jpg", "screen_name": "dewitt", "status": {"created_at": "Fri Jan 26 
17:28:1
9 +0000 2007", "id": 4212713, "text": "\\"Select all\\" and archive your 
Gmail i
nbox.  The page loads so much faster!"}, "url": "http://unto.net/"}'

----------------------------------------------------------------------
Ran 36 tests in 1.311s

FAILED (failures=2)"

I am using version 0.5 of python-twitter, using python 2.6, on Windows 
Vista SP1

Just so that you know, I have never submitted a bug report of any kind to 
any project before, so I'm sorry if I've done this wrong or left out too 
much information.

Original issue reported on code.google.com by mythgu...@gmail.com on 6 Mar 2009 at 6:18

GoogleCodeExporter commented 9 years ago
Thanks for the very detailed bug report.  I'm almost certain this is a 
duplicate of
issue 26 and the problem was fixed in r120 in the head.  Please try checking 
out the
trunk and rerunning the test.  We'll release version 0.6 in the relatively near
future if you prefer to wait.

Original comment by dclinton on 6 Mar 2009 at 6:54