@tape.use_cassette('testshowfriendship.json')
def testshowfriendship(self):
source, target = self.api.show_friendship(target_screen_name='twitter')
- self.assert_(isinstance(source, Friendship))
- self.assert_(isinstance(target, Friendship))
+ self.assertTrue(isinstance(source, Friendship))
+ self.assertTrue(isinstance(target, Friendship))
@tape.use_cassette('testfriendsids.json')
def testfriendsids(self):
auth_url = auth.get_authorization_url()
print('Please authorize: ' + auth_url)
verifier = raw_input('PIN: ').strip()
- self.assert_(len(verifier) > 0)
+ self.assertTrue(len(verifier) > 0)
access_token = auth.get_access_token(verifier)
- self.assert_(access_token is not None)
+ self.assertTrue(access_token is not None)
# build api object test using oauth
api = API(auth)
@tape.use_cassette('testcursorcursorpages.json')
def testcursorcursorpages(self):
pages = list(Cursor(self.api.friends_ids).pages(1))
- self.assert_(len(pages) == 1)
+ self.assertTrue(len(pages) == 1)
pages = list(Cursor(self.api.followers_ids, username).pages(1))
- self.assert_(len(pages) == 1)
+ self.assertTrue(len(pages) == 1)
@tape.use_cassette('testcursorsetstartcursor.json')
def testcursorsetstartcursor(self):