@@ -809,6 +809,7 @@ def testGetListMembers(self):
809809 resp = self .api .GetListMembers (list_id = 93527328 )
810810 self .assertTrue (type (resp [0 ]) is twitter .User )
811811 self .assertEqual (resp [0 ].id , 4048395140 )
812+ self .assertEqual (len (resp ), 47 )
812813
813814 @responses .activate
814815 def testGetListMembersPaged (self ):
@@ -820,8 +821,10 @@ def testGetListMembersPaged(self):
820821 body = resp_data ,
821822 match_querystring = True ,
822823 status = 200 )
823- resp = self .api .GetListMembersPaged (list_id = 93527328 , cursor = 4611686020936348428 )
824+ _ , _ , resp = self .api .GetListMembersPaged (list_id = 93527328 ,
825+ cursor = 4611686020936348428 )
824826 self .assertTrue ([isinstance (u , twitter .User ) for u in resp ])
827+ self .assertEqual (len (resp ), 20 )
825828
826829 with open ('testdata/get_list_members_extra_params.json' ) as f :
827830 resp_data = f .read ()
@@ -837,6 +840,7 @@ def testGetListMembersPaged(self):
837840 include_entities = False ,
838841 count = 100 )
839842 self .assertFalse (resp [0 ].status )
843+ self .assertEqual (len (resp ), 27 )
840844
841845 @responses .activate
842846 def testGetListTimeline (self ):
@@ -1017,7 +1021,7 @@ def testGetSubscriptionsSN(self):
10171021
10181022 resp = self .api .GetSubscriptions (screen_name = 'inky' )
10191023 self .assertEqual (len (resp ), 20 )
1020- self .assertTrue ([isinstance (l , twitter .List ) for l in resp ])
1024+ self .assertTrue ([isinstance (lst , twitter .List ) for lst in resp ])
10211025
10221026 @responses .activate
10231027 def testGetMemberships (self ):
@@ -1289,7 +1293,7 @@ def testGetStatuses(self):
12891293 rsps .add (GET , DEFAULT_URL , body = resp_data )
12901294
12911295 with open ('testdata/get_statuses.ids.txt' ) as f :
1292- status_ids = [int (l ) for l in f ]
1296+ status_ids = [int (line ) for line in f ]
12931297
12941298 resp = self .api .GetStatuses (status_ids )
12951299
@@ -1312,7 +1316,7 @@ def testGetStatusesMap(self):
13121316 rsps .add (GET , DEFAULT_URL , body = resp_data )
13131317
13141318 with open ('testdata/get_statuses.ids.txt' ) as f :
1315- status_ids = [int (l ) for l in f ]
1319+ status_ids = [int (line ) for line in f ]
13161320
13171321 resp = self .api .GetStatuses (status_ids , map = True )
13181322
0 commit comments