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
d7a55864
Commit
d7a55864
authored
Aug 17, 2013
by
Joshua Roesslein
Browse files
Add test for API.lookup_users.
parent
ea72e0b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_api.py
View file @
d7a55864
...
@@ -77,6 +77,12 @@ class TweepyAPITests(TweepyTestCase):
...
@@ -77,6 +77,12 @@ class TweepyAPITests(TweepyTestCase):
u
=
self
.
api
.
get_user
(
783214
)
u
=
self
.
api
.
get_user
(
783214
)
self
.
assertEqual
(
u
.
screen_name
,
'twitter'
)
self
.
assertEqual
(
u
.
screen_name
,
'twitter'
)
def
testlookupusers
(
self
):
def
check
(
users
):
self
.
assertEqual
(
len
(
users
),
2
)
check
(
self
.
api
.
lookup_users
(
user_ids
=
[
6844292
,
6253282
]))
check
(
self
.
api
.
lookup_users
(
screen_names
=
[
'twitterapi'
,
'twitter'
]))
def
testsearchusers
(
self
):
def
testsearchusers
(
self
):
self
.
api
.
search_users
(
'twitter'
)
self
.
api
.
search_users
(
'twitter'
)
...
...
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