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
8cc28e5e
Commit
8cc28e5e
authored
Oct 15, 2009
by
Josh Roesslein
Browse files
Test updates.
parent
550cba60
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
8cc28e5e
...
...
@@ -168,8 +168,8 @@ class TweepyAPITests(unittest.TestCase):
self
.
api
.
favorites
()
def
testcreatedestroyfavorite
(
self
):
self
.
api
.
create_favorite
(
4
857050091
)
self
.
api
.
destroy_favorite
(
4
857050091
)
self
.
api
.
create_favorite
(
4
901062372
)
self
.
api
.
destroy_favorite
(
4
901062372
)
def
testenabledisablenotifications
(
self
):
self
.
api
.
enable_notifications
(
'twitter'
)
...
...
@@ -257,14 +257,16 @@ class TweepyAuthTests(unittest.TestCase):
# build api object test using oauth
api
=
API
(
auth
)
api
.
update_status
(
'test %i'
%
random
.
randint
(
0
,
1000
))
s
=
api
.
update_status
(
'test %i'
%
random
.
randint
(
0
,
1000
))
api
.
destroy_status
(
s
.
id
)
def
testbasicauth
(
self
):
auth
=
BasicAuthHandler
(
username
,
password
)
# test accessing twitter API
api
=
API
(
auth
)
api
.
update_status
(
'test %i'
%
random
.
randint
(
1
,
1000
))
s
=
api
.
update_status
(
'test %i'
%
random
.
randint
(
1
,
1000
))
api
.
destroy_status
(
s
.
id
)
class
TweepyCacheTests
(
unittest
.
TestCase
):
...
...
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