Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
07026628
Commit
07026628
authored
Aug 18, 2009
by
Josh Roesslein
Browse files
Tests fixes.
parent
50008ba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
07026628
...
...
@@ -19,7 +19,7 @@ password = ''
class
TweepyAPITests
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
api
=
API
(
BasicAuthHandler
(
username
,
password
)
,
username
)
self
.
api
=
API
(
BasicAuthHandler
(
username
,
password
))
def
testpublictimeline
(
self
):
self
.
assertEqual
(
len
(
self
.
api
.
public_timeline
()),
20
)
...
...
@@ -30,7 +30,7 @@ class TweepyAPITests(unittest.TestCase):
def
testusertimeline
(
self
):
s
=
self
.
api
.
user_timeline
(
screen_name
=
'twitter'
)
self
.
assert_
(
len
(
s
)
>
0
)
self
.
assertEqual
(
s
[
0
].
use
r
.
screen_name
,
'twitter'
)
self
.
assertEqual
(
s
[
0
].
autho
r
.
screen_name
,
'twitter'
)
def
testmentions
(
self
):
s
=
self
.
api
.
mentions
()
...
...
@@ -39,7 +39,7 @@ class TweepyAPITests(unittest.TestCase):
def
testgetstatus
(
self
):
s
=
self
.
api
.
get_status
(
id
=
123
)
self
.
assertEqual
(
s
.
use
r
.
id
,
17
)
self
.
assertEqual
(
s
.
autho
r
.
id
,
17
)
def
testupdateanddestroystatus
(
self
):
# test update
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment