Skip to content
Browse files

adds tests & test data for GetFriends, GetFollowers, and associated m…

…ethods
  • Loading branch information...
1 parent 741c0aa commit 326a451966cbc0e01d9b608a4f5d11888766b10b @jeremylow jeremylow committed Jan 9, 2016
View
2 .travis.yml
@@ -9,7 +9,7 @@ before_install:
install:
- travis_retry pip install .
- - pip install -r requirements.txt
+ - pip install -r requirements.testing.txt
script:
- make test
View
4 requirements.testing.txt
@@ -0,0 +1,4 @@
+future
+requests
+requests_oauthlib
+responses
View
5,008 testdata/get_follower_ids_0.json
5,008 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2,893 testdata/get_follower_ids_1.json
2,893 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
11,127 testdata/get_followers_0.json
11,127 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
7,539 testdata/get_followers_1.json
7,539 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 testdata/get_friend_ids_0.json
@@ -0,0 +1 @@
+{"ids":[174716364,4229043317,584141481,36244707,34643610,7383122,2307068066,390842981,345894976,2798004630,193596810,16474986,82431632,20021712,2967867342,1345863144,525249617,80797182,365459573,1511949548,21014078,227013289,1532543576,1481054280,16280979,25453101,70595671,255517988,596841936,64523032,15714370,1432081760,45869342,778250695,23008743,915719034,16467789,39263564,3346616554,333442035,36918513,15822969,2469857444,826052299,3892175716,1563895639,3079401397,3092079436,17155587,98962695,2336216776,41565136,832057747,482179923,3987827837,14115172,125423182,123289807,2383284786,4527950052,1485600931,2352084432,22508206,126151675,38705128,433247367,1079443074,2338105459,118935599,28599820,23295958,2284018490,1232995548,184385983,357661916,877260416,949232324,198434663,416809908,20065936,307855987,3182047141,247517043,4427416695,4426698797,75091114,32878430,4273147873,2402197177,1543056944,47605173,2560289532,39013572,2866046769,126037037,17402120,262352377,2358407005,596706060,2885725097,600580312,466899807,112029154,3035489583,3420906832,294225981,2776016907,43602705,3041074949,75641903,15428612,1666099686,198352854,216100700,60843563,59489293,18486446,385883807,89254683,116707941,84028963,2566824948,57048551,19351317,219957717,3877035493,3812320515,3540832456,3377353389,3306463672,3306307028,3252248568,3240557112,3105512481,3036145773,2954253258,2786392888,2761823098,2690520336,2536509241,2425339574,2339890328,2331512354,2248966884,2192183084,2186834270,2168408323,1926787008,1897471286,1465738609,1427386350,1414052431,1377573938,1351957970,1327886413,1172385756,1155945612,1150900106,1035823255,1014668238,1000540062,996120571,995794087,968080993,963957084,931130899,925035698,858718512,802185074,714240331,613455739,608610375,599849374,561887188,498700046,469171952,454672754,433794960,422355017,415989428,415458548,412254113,395868327,386076684,374811299,374675413,374413553,374052497,371313804,359573726,358903005,355696940,351971672,350579415,326854066,311240703,302102486,289069118,272285827,264806091,238096056,237243990,235785221,229114172,223424972,213359082,200217502,193653724,183454227,177458594,175104981,157965754,138375644,136968204,114543805,113960138,107161643,95981793,80811754,80122680,75467271,74424673,71091193,64610462,62029673,58517669,54903471,51207702,50089463,41146281,39909343,38839573,34865826,33223159,31397776,31387025,29719275,29708270,26843983,27004894,24444891,23833491,22156161,21864336,18585097,19491190,18114111,15630662,3737281,28072047,22538725,2906956060,372575989,72345536,3350493279,156905483,12475072,3503442196,19568034,22410909,2603080159,82355306,2888034164,452352757,3606504676,15414356,76849994,427354566,51031558,28563096,34863269,525487471,119521385,4316815947,515511443,14223960,267788953,17617472,3053663748,3248910245,34306568,415823496,1524749774,153280848,235348644,15506669,234136347,733322844,14160917,33287494,990305612,1915177471,1563503360,3585167052,458046334,2613246072,961755354,2266035060,946894280,4220691364,4071214642,512407105,262471388,19670226,373584957,15920243,4257979872,14269768,97738079,2538349783,58211781,3412867557,284718102,20224969,21826316,15670644,4119741,22429979,1344603788,4009671023,41660626,36508851,3910893854,4010449719,65176836,14545372,2980058889,211177035,757303975,14817150,18393196,15692520,1209887330,58812628,637196658,372018022,3942597494,200711723,278093318,21119658,39446462,21982720,14511951,3676292235,2927107460,4071873193,394060363,54306976,4129078452,17663776,140252240,82659154,63697051,3834939257,3621791535,1541797452,1643475626,1012864226,594015697,133929829,194714715,2489508619,189763764,8752222,3074259883,1138981327,318549214,82544380,29735775,14679233,4040207472,26682348,868389662,4010618585,3245142196,3980516359,240471848,2382609979,112793441,580942452,15542781,46190611,240184267,44903491,2821370524,3257162537,1497210092,1353260683,21059255,26028448,2455204525,377206475,7900962,15029770,559028753,3907577966,1252117579,3617313256,313743136,2198108859,135905236,131552659,25856281,1360417214,67622527,216633730,97506025,15376200,65154490,345232857,272491055,343267635,92027622,2192878808,2478738590,233387844,3317341816,17448192,401281561,3929578042,3937345408,18639452,22095964,246788299,14552366,360654151,2281125961,62515016,835680883,313525912,3982969096,24277551,2747973655,3167182492,70784623,207635400,28411360,478849885,1055281526,3356531254,3266848870,3958051175,15359205,3310428789,111778335,256277422,85032215,249466118,1111063441,633980404,12604082,17505249,17043428,344395626,80655195,1003857624,1509936680,165731767,2178901645,3230052541,378703672,1268764082,14585409,14752312,257893956,26609246,25924436,112236745,3901783420,16866617,16951956,77570910,15409625,16944165,21266560,2927266003,90694228,68449573,403727931,404421890,68707961,14290018,166772969,399004430,307589282,607099840,17455195,131301936,8835652,33935000,515034648,2916305152,3675973095,284638893,3114313702,2971787403,2342323674,4906211,3406043239,1390255892,591160609,2370597494,1430901781,177336591,173216568,246867553,219070649,3310348271,3364515135,214502417,246615051,21099301,510123282,2526706224,2231927636,2201024219,3352886781,2821132277,330797853,3675995734,240061941,429946250,570705602,169661494,2545171004,3184574881,32929377,1482771301,3583264572,3541994172,45155495,2493733837,488810546,21581820,14607059,2980100441,36393171,163036182,81951477,26396117,18424289,2514293430,1019836922,3293886549,110396781,221834911,2813202439,50446226,19758375,370758768,383435496,14676835,24831757,2180408564,3350807423,233257967,16880858,23911915,448434781,166267705,65640999,17774100,1135983726,621522194,3221765772,1198690393,3472808781,61018648,27895727,257922239,3458195901,15754281,2467791,34379755,15208768,861455580,3243356006,3433379001,21634600,1282121312,1369144951,52494838,52499707,379824075,292650377,2830496875,33661289,14768193,2212664486,514033223,26267605,298665200,1365252164,148962007,1475775084,66385865,590060558,55633685,3241266563,3169051790,124293790,14264161,476387407,2453452381,2395614938,14850576,14445325,4488,2780477770,20675211,441134864,196462653,54654212,2285771029,1665877224,718449524,2680763216,47374474,2717089861,518143842,3021697442,45420135,135990436,41127809,229999442,2437502443,16148151,417739798,861893730,230240898,1040127511,1380385320,2600187422,3243668999,845066312,17200105,1365460075,961201465,610219779,113689722,357551176,417960385,637467612,796721929,61524685,869416448,839536712,764372598,1020108763,258960686,579300579,1710096061,2372308056,20715242,2492541432,2431369694,99000872,304550287,15076489,2835899107,620020696,49574494,2408844830,512905341,49534192,299639883,2941125060,14145626,311086886,21512767,1523794302,324956327,18049298,23195549,11179192,340795517,874798920,69186722,979311691,2978541712,1219366122,3301420004,14295657,244162778,2805687654,1143905359,19039279,183247422,14994676,3193173610,19086064,15914986,1106610996,552661784,179163585,480630176,124528783,1170164516,23826345,134918286,1546783842,127705651,76520255,375760645,17596069,50329013,243314723,18139220,2615319734,249724351,15737554,1259839165,345615190,166028524,1665386791,275391646,245384422,308078682,3304470901,25658504,103085965,3018968748,14468410,148567358,3395561619,111404710,1347581462,3073871212,17530448,259953357,610388842,3373321,15852132,28883874,35088920,272633065,284542523,435404014,2937575623,3244931611,203609543,3219632226,17175139,3333394869,456930921,3065348142,35382548,278652369,152877900,74903828,96602314,56179493,26377478,25168865,3157927513,15466988,285125151,2746648903,3362148580,3288353887,785808991,456403811,2645532414,3307377695,42634830,34946754,139830358,42857269,1858554535,24657506,48419856,14031032,14116915,198020721,13759792,770066,1701631,3153328297,780993961,2417085025,22032817,2978608072,2866454409,1357254643,1656174793,352644923,2903966777,372760774,299505155,25170613,3226238609,21916640,22205944,756762998,21145852,1490861354,80893052,1979558624,3345956002,3293153877,313813951,87205530,14695043,2284287030,1408308162,1732689133,3256190911,829323654,17372204,618351213,364062266,3342152225,15218212,17463028,2218734840,630703637,2152614386,2859487678,18104730,1433469289,18040395,463428936,397694029,637357269,2738735742,36584174,728305885,714296275,163610075,413634848,523676772,265484413,225096128,222490156,36322086,998640920,21277118,3232924232,3251112680,608310777,2949547815,52452323,2347560146,3016964678,15824288,246309084,2547533580,341046775,42628521,3309136432,14188527,305913715,16683885,293941423,49885057,284589209,65478524,32269230,840506047,3239114702,2615603432,345454327,36336107,3108671256,3091552272,274866611,394134791,18244419,153500044,1465842356,586,7692762,856432010,12329252,18737731,22546003,3300703462,2841359663,82398383,2617471956,138681231,2690187182,885506959,3119449389,299988190,3308352436,2899780530,887221,2182516859,2153551561,165862343,14614981,24950791,3293347210,3309662224,1296292616,1222705992,584162442,217478823,2900242168,779049289,840233028,3257262027,13565472,2675109888,30013010,168754092,14526877,20698435,2282667775,835858886,570484435,2223451512,1722403496,6476742,636586551,17851886,405157471,15604078,148736206,77456101,74536754,47880934,599515941,2931131799,36163152,3044665445,3572441,2937632239,15481158,25171326,47939390,15808647,15249166,16287007,1398449161,84652865,3151633831,22271373,15432750,23971393,273223527,2149815847,2384173392,20056392,128544009,72255032,39279027,313525999,3221779009,17714082,16782604,1270746139,3148356377,3195834151,1536791610,30791070,109317659,538489875,2609106255,41582030,18691048,89123936,43642659,14124899,545804017,17238395,22840995,138830247,537776452,325803700,2448248076,2877214085,266185089,3187026492,23596644,23408887,20172250,102420852,499917546,92030522,1394917244,1556361283,151689073,557976011,795008808,566052541,115865427,569643970,329989597,27963917,31227419,21918047,16132284,25396695,188045648,3149889709,1730414958,133947893,3172756859,3186605629,28592419,465255113,379921752,37280980,239297332,28049003,12523012,202890424,605674944,422105720,16517679,500704345,60939512,1304924886,278648035,3160470333,216776631,2151820370,2339685247,615471114,188545143,814589791,1260091734,2752775016,2868169873,39692025,3146567046,20530177,231649709,2815076773,14774366,2480569345,2828369140,271636708,104916123,15529670,14638851,15081378,15774048,16002085,16596200,17179368,18536997,18637420,21576334,21705181,22021978,22128352,23948464,25030848,25298569,25960714,30971909,40874240,43792125,51002583,53416347,66533920,80802900,102934369,135060958,138108708,162869238,172081908,191849753,221707278,276713213,363997684,566688127,1183947482,37861434,18269124,1200738858,25348485,1582341876,1228526078,317700208,46770535,2885031082,51768731,22481472,2769059108,2680336646,171198994,33323849,14247155,2882391828,2489298668,3148813916,10959642,14903013,113450686,1267082576,3121530274,492545912,1315298502,351127535,251796912,404351974,38135837,1634066785,2968989617,1071777608,616279187,123532694,109890809,17681505,16721061,130906331,2182641,575905433,93581874,1187444389,1606877971,27688281,16957321,2856042501,378778750,1615577521,431627744,197108944,1551856777,62648354,16785742,11696382,2732089057,12494842,3107878302,1000968684,538475269,84599034,2176557343,573965125,14571751,2685092670,364762860,714864200,17621767,6825792,22458458,46335511,1915336519,16088941,1278123535,233473695,376790816,87215923,785683,217430520,1444424754,58514805,3035726218,6385432,14897303,20508720,80617430,167518667,14477723,432895323,3029021253,562585357,25889033,32078497,1357252880,28278535,2952910735,139112983,235214894,2865812463,44776990,17599655,5045181,6780932,2445809510,2927758254,2842655435,2296984584,1694401938,21165339,807735240,39108656,575660051,3092388093,2400443496,57076191,155748301,13209362,197035403,14325025,3063529148,2485531140,1906951,10018072,2562629773,222467178,29752603,25165002,947986136,3014224345,12076002,16396118,2371270375,2977964520,60642052,571202103,80069319,140074826,52129399,126628622,21965626,12755092,2314467259,34424798,582909932,3026704559,258923616,2030711,27212264,2392489904,16725824,2778827209,3058016604,342100419,18014373,122387909,2382117350,16892481,386631799,2835337844,127739478,16477936,187516575,17845620,2600525376,101754147,84684955,14564868,55694209,33433709,751452180,16216975,351200120,2575159890,29100243,661403,478326622,92601300,831880992,1269364218,386413191,526600858,60747383,15612654,456253373,978176486,17687405,132399660,22144306,19185921,85193539,18137749,27025052,1926360631,105207999,202787004,174397217,110504902,15220768,27054843,111954709,2496916592,16109926,20066416,2991711108,18259909,81650351,85252011,763450351,2770265776,139823781,85732762,5360012,2777170478,2247473304,620142261,2983295300,558739638,259725229,19968025,2826874038,3032074419,126696497,135158292,3047677737,19983827,997629601,14464767,25375092,9207632,14043142,20020021,2846058853,115615024,2703332132,1583321544,271483634,200918256,2965129341,131227689,16681111,2845735816,612644714,2899672599,1087860428,36184638,610659001,24461387,43379364,2980412572,1483376342,2326120952,755861322,36959762,537541336,910873332,55216586,337819489,2553927774,2032411,82861206,631401764,23567622,28888320,7140202,2160344682,16220555,1126749103,13967302,21248379,552582271,7782442,19819769,792378206,2338365339,2962973505,21484068,34126441,1898493691,746032117,476193064,14728515,1919257285,19137592,47327436,15363133,311080265,944203531,54216622,96072665,2885138213,1285630338,87057908,19734832,3003481647,2999377084,171167972,413355878,321522551,16548855,959675203,8790772,2292182045,20476151,15421871,301579605,16339247,454992440,2550858595,1429055587,928481,20651511,19040598,8034682,135575282,2789139782,277219019,2783583373,50741143,190669152,2990470226,513855040,584359541,2988116739,18297407,19358191,171279007,583869504,132213553,145613137,1581896461,6698022,15865042,13217612,14481269,101897322,129653547,28251153,34781412,2605497847,1966256035,243775607,2770081590,18700629,74474794,77092809,64954941,960727483,26401477,2566085594,25892745,5031151,19255050,31094727,34632493,30290980,40028412,22587230,21364753,19918988,16619709,19711765,87474197,589535421,256722290,462578542,1950272508,253270711,205076166,169698101,1451773004,581815681,2192619314,2966047517,1639495106,887906528,459796949,159955958,20017825,18276341,396399850,212304085,594376322,599632006,596964216,813560072,34936539,113739104,18955413,909529062,103041418,234947344,119625403,115210837,403567128,1294168843,189253902,203654782,21495286,2546261755,2364189422,2847023699,516633812,176036339,18689183,29795697,34197266,2862725633,92326348,33136420,24381416,581005340,24545398,73761305,626861469,381725263,87420519,379356101,107823143,473111750,1481073828,2815948320,2911296698,62724059,2841020667,28373693,1327886654,1843791936,2759600352,554508623,17042078,2820671119,304356334,314702715,14493552,55038953,315302894,16714443,351915951,296464173,187972757,19355829,14606202,1733419830,42660183,2894919132,28098358,66444507,50219804,117247636,23031376,43358159,20380049,29776689,14868608,29299946,220044097,424484966,17947003,2875097319,1107261638,165411483,416699250,78533960,1125047372,205193523,47498699,20726786,93761004,410600310,49155241,15349180,1471250628,1179455215,2438273430,2381931636,22428439,50488060,388937036,250844472,1949282881,394103606,57932039,49012699,1494655406,21339159,2881924182,16877374,260929607,23656337,57656702,52756637,68482261,17186905,2202557258,2283541350,125190427,16935292,2821900992,425265314,112838571,15367088,2596218403,248805395,2806556857,262317278,520665133,256754327,18806838,64786050,16224705,14186638,17125603,1617731504,2778642937,553757993,284988279,544773325,710322776,1203840834,14949573,67059584,23112236,259395895,74801995,2563919738,313080999,403608556,2518212522,440362326,258909040,2618403776,35688200,312314261,274396558,872252960,204932888,20481072,2864318800,16715240,41186732,55896443,291531600,16160638,15129727,252179335,245983319,15084970,255861014,71832238,77920769,30321661,211939913,1669352653,2857371350,2666750809,529501969,962148625,302404672,22497733,2546868080,2677634329,2712674750,851499338,2755310156,1530953521,2808864594,2305630168,15345483,67367405,17833557,305591096,792600386,61670139,2564135360,268429621,2831587762,865341985,136018565,2331421572,2839228199,61526252,2733320850,2577957372,17040892,2443847048,15961122,2435960576,2651763620,51318358,1611472182,840450648,236916259,83385252,619642695,44686344,118245138,600803781,179459971,57145894,60101766,77041903,49717501,40470694,63646805,1672787334,88135655,471741741,60075391,213228524,25741919,296198193,399010753,119116960,2719719666,363873688,256495314,121817564,1406091554,53120768,2567863897,1400360078,2394236400,358260333,430989298,56709645,1362466212,30581721,2800252702,16177628,720238182,298034812,17169832,17049669,15837189,22209567,80859044,1321619010,27849650,2238491365,27225542,14765585,44046726,52488565,2826549302,80593904,1499335951,17974312,178023069,385131056,15704617,31832948,202313343,1876367312,57047586,236838188,2597498814,327577091,400989826,2765974980,24667140,1545338485,25518846,2179994252,62266883,441421837,1496344326,1306041620,174110843,1288758828,14437242,16656631,1115148079,2325202999,337886919,614249266,1081962504,541158674,2651646559,1667662856,193473814,16007952,16222904,561676909,1167842311,1486002967,1236601488,810483626,1547722903,109779429,1258398914,277320871,2801517637,1735713398,1289024803,517661405,1671813086,168987151,20941708,40656806,2628171535,473444562,387686234,1491083406,786625988,63760115,1966754972,14056532,18525154,2677576862,14304615,381026831,31338198,2746492014,1534066765,1362354044,28585356,17688714,1278161922,20810335,2693435648,2372984767,1707854317,10536952,139933597,27315969,16607603,1418741706,401775393,591459541,218944987,1405385880,2291338687,55243095,2469548600,38475395,2495438286,2426410609,413164975,2354233526,872355266,77621538,15762708,39342600,2232398257,1182675871,24595575,81690879,510592186,331703548,14974079,20941733,22041466,148529707,121544946,19904685,94127415,72842277,143923948,17348942,14517538,88781425,980582593,38146999,260928758,917421961,267328866,912345692,17666727,48048888,930781598,15738974,33248363,41476394,381347159,48000256,241964676,25772065,14636374,135501248,2740669634,209693623,764204616,14045465,1676457685,2493331080,2468202997,2744765320,2763178020,83972205,15838004,37521145,400372150,246682858,2659960540,324599106,138692729,2415887156,2584158559,124236245,16641343,2577502560,71461029,23760311,1546624514,386517435,164089883,135461282,241730145,114604564,245305204,376380585,36056115,47747074,381318163,61676800,22845527,15521535,20007097,97327765,27000730,512417432,88975905,162436508,535878400,12382582,143914733,2596694492,2294608897,6440792,17073225,14090948,17068692,34308692,18481981,341908197,394962139,7768402,69004966,14849562,216379128,50058630,22987082,62952335,1682157414,1163807618,207645432,14780915,23818581,1630896181,558927451,24606710,12803712,463054608,116106958,11265832,548443674,2230397137,40789325,158503650,14698682,21787013,26731417,62414046,2400320881,1128482060,32542903,115182291,236050146,1251230114,305870046,2405020009,1098802430,16119366,37547775,215746958,2308875504,98685536,606838476,2450043698,258684388,18749271,128242246,48116802,2444534352,919373695,44499804,382937731,35315865,874176120,2544227706,19551341,129988372,2674556090,84200893,2472066191,478669659,2391664056,176210560,871991101,186826724,47526275,17417452,59029811,11990942,8132582,297602297,19178857,193767233,28947018,132655244,46690800,12354252,2165245332,2590407811,79449976,2634423025,290139804,1076770202,45268666,84661546,898124258,50482530,78647472,505364106,595568451,51306445,1439508630,18629321,537343182,402199056,31439308,16539917,17966102,33388399,22138134,573415146,1916506454,764365266,168537920,19000697,17519586,2332700791,1147895708,30008429,154652139,950794590,2333936658,350457031,595722578,334972686,93258847,1953020821,244539931,126205656,145312903,22915052,835787268,1568977914,16146755,582277886,2317168669,2321375918,32427374,42956446,741928796,29342313,2423058966,1072993274,245078181,9022032,17602811,63783716,79306105,14765253,2544359214,615526730,40303245,2340460459,50337556,1445427806,1891806212,2499310819,2586257250,18963809,24226431,382689369,10688432,268432127,28218405,65688328,83540809,14089370,15009111,14347423,41202241,1198481,72287350,137455381,67595257,44104818,14786823,29992342,37298915,339398952,1414376791,280753615,317256778,13786802,331803536,19563103,17040599,59503113,29442313,91593332,240087328,76485784,609308872,1356942170,95468980,9636632,25180871,2378320579,12759,14699388,71465523,602065304,2480079168,2377815434,1565908723,49860614,102807713,87466533,897558096,33480171,1492400330,945310303,745744310,29913149,126410058,2548240340,93187905,19855459,1892683062,43696910,14994194,288778779,543582293,1573751760,2168445745,186183169,2484050419,245347370,560900368,266635682,280237680,2474749586,32257623,54993288,37377034,2349040381,14721643,407657538,2417232973,32527860,343422277,511065332,2517988075,165573426,302186628,1965716257,55320310,5907272,18161631,23694685,978343472,19767193,83031278,600031424,286429276,274754192,41410667,33351873,526871737,17030680,17766403,1017889500,80076673,390287262,2266900200,88454469,480196886,90674236,30644410,872955290,16721621,568825492,330921167,168786720,13680362,36670025,2363506767,16303076,12917402,14822252,2571155086,255323205,815454817,127877956,25935803,28250356,1331578932,87691397,19034236,292650956,2492302700,403929334,15728098,139909832,18103385,73385250,578570016,91237615,54277378,422217439,41847726,611743131,7091082,1399429982,284694021,2240082577,2423795893,15008449,807242797,900817166,183962178,129767622,61354111,16182261,1561888556,187518287,1750241,34877293,2491917122,156045092,1598322511,373490653,2497242884,94496307,28982619,137482815,52461472,15355482,32768009,33647344,16191902,51176565,90725320,262753143,65987618,544466882,881469662,776386459,166555205,14465327,43412697,438935496,376939806,2347382634,14080346,1137893880,15830436,84413113,9078002,13654792,24794149,234132941,392460729,14376279,6604762,463070295,25564548,1603425318,2185084844,31293166,46934577,17375281,72783659,20778387,303651044,68870274,472499685,22006902,16952174,15088481,16799074,18261865,26521047,36381021,53186378,949934436,76478482,21943064,245587242,207775224,52521572,426080991,16978136,14156567,86455397,1004714095,2403031566,108777062,1002351378,832197440,770853422,740719345,470939544,382758202,106843613,93986038,92512982,87759772,68906469,37866396,23469247,23115743,21770611,19123229,17472945,16870421,16838443,14365976,14280661,7748752,14238165,9684932,6092342,6044272,5943622,756475,48473317,2424440299,137319969,336624022,55119016,310293175,20608711,209213183,612019015,20961635,11317392,16227629,773627940,267038232,259317559,11313202,733515391,1638825054,22526906,1523709008,861949171,1714177862,8221612,14247309,326665662,882173190,1337011070,263129271,14248784,17371549,2315729580,112843330,58684655,17889970,479816451,109944769,811268736,2350315904,1575918264,132231788,52998367,363399297,17874869,17698600,286703,60087571,590074258,308607766,590052098,266917386,563051945,37759047,277337146,5870242,1355927760,64873265,303955090,19164415,20763870,40615771,975002792,2460145735,16231706,929989772,601874499,22965441,54687857,774357217,247462443,2281856286,2460716006,16531850,1620127254,1109372617,21249970,2411793456,1388352121,1910701892,190367688,791733534,15522528,28637222,353066648,120194754,262077429,318488345,90982474,71643557,376819015,74612541,534530008,79870762,12044602,1212433794,14787561,135486450,370343276,284544447,16637461,1184647243,38496530,7591572,86537404,14599476,13784322,16594832,62575859,14513611,255797635,119756545,15764415,2329384614,26374751,462334474,15684633,129924486,101149691,14352599,108418043,2373927878,291486075,22804909,1979667199,613822232,42072417,139920911,18814041,20755177,602602937,15023095,17198424,219877441,103962290,588470328,40233111,1549717748,226662318,110004599,179546580,165204211,779349096,1281581,275031945,23892094,1542533869,625619938,14172171,140893518,2384027052,31563791,101233661,119528386,2437819891,352823966,27581606,16340404,368720556,24820089,111426091,16303106,262806854,1305684487,580147795,59124142,46106161,367132858,15112727,2428998008,970428030,165896536,66182591,2314620908,305468597,17824498,491638416,25283401,1322965681,257261479,1598644159,130949218,36525252,18812587,1220677470,603162738,111061417,87617621,84875272,19026735,125153534,14315063,1607352596,1485895513,110025208,1363049263,47678024,3564041,68974666,297915370,634702778,912858588,55592530,17211476,560448814,2317837263,84679163,184716468,2239721196,237236374,595331088,71666839,382444001,2179057898,184916555,5389812,278216951,109571377,16716425,55289075,192477353,492492626,820569,16891507,1102056919,19002473,327738223,1102910605,410464768,153509545,441389311,1862198252,236650677,134687445,118228045,2426127924,231136803,1489065949,15934978,347982162,1027408974,322207364,933838590,394838158,26605345,132615314,41806795,23128315,21332950,58947113,514564994,14637342,537964292,802356409,778882057,1513925282,793202,41159876,2188586045,27941766,165565949,107217872,30948908,18778603,220796129,259302400,61044673,109028340,48564118,223416400,1452248826,15571577,1725031976,104150206,202718818,44562973,214120461,15906933,338374151,161075778,155978068,22518224,15774741,569681063,1883512460,1245104060,27485087,10340482,35117516,23044822,465143733,1537565070,818439685,249839335,16299754,507370446,35982657,52314673,329969032,217295265,36722950,15968617,550055167,52525358,845978994,17954340,524561437,166421185,75123927,1355953682,23102969,22014639,188215959,473466262,219029005,278163334,227576375,827977682,51205716,137742822,21972198,240932555,40562015,14190948,18251446,366602971,21347530,542004682,56722075,561070834,43485656,2364657150,2290457413,48023374,1838597966,2401493394,872059213,969293274,265605249,390967512,175091719,17454817,287538756,1201951519,2264624702,264787370,2340558698,717209689,381677670,331932733,23636580,47654924,7342412,19329527,2779791,175711277,985757023,2348907300,14205258,17018575,74386780,62259828,164369912,262349771,118962352,180889575,456034260,48252319,29628889,1668371516,449588356,2282440670,6462342,2303751216,29120905,236635893,19761418,824191926,50023989,19557634,1729664714,2315839860,98906407,1406854364,2379806143,1080534464,606466484,749333,243019943,87095316,732073,963455227,18290719,18131748,81915651,2375449098,326506923,34873364,112929575,22454647,52429172,57833122,1668138098,25147689,18084448,32190652,124222041,318084384,17435612,147672166,69012419,2216979384,24881388,397497637,2361860238,2241216361,17939037,29564281,2342620190,9465252,2347049341,30092032,720863642,101092520,351221537,453709635,316654916,21882601,2339734951,1697668345,274559013,42447094,18229868,518681855,297564170,16906137,2354013972,119580247,280572026,15790927,107491156,23982002,149666064,112396470,294018733,115396965,1560780523,42721524,981127062,18637798,14304618,2195930491,16051232,97703815,2262999971,32511767,632062492,304049696,304070008,305256777,272989565,2341020134,2353506732,50306005,619524081,19715003,56564230,220873939,2350108166,14361155,2270533266,25333609,132631769,17815546,716827128,2316481586,234273955,481324580,1732829419,128308837,275471220,19548625,334032462,14067742,20411816,17358750,590185677,927505483,393592962,291363,2305323806,33901209,251829918,15145016,17092444,2174555742,394932596,32347705,15751301,395491697,18171067,78963433,39602114,19055698,20495812,285802436,66261900,311062620,441275531,22260999,17574357,104513715,277482283,618401788,1189043576,48021931,25039599,1932282721,432958090,16947056,139975371,14687012,321181858,17458287,2195241,16166496,2171689341,78779800,14202246,398187934,14922268,21286406,170354845,2217591657,15223905,47451496,61663,21834922,26780981,42312055,42329555,27893163,2288937728,51221826,17088643,42782133,25158349,1741439630,841898942,298557751,211971511,2140881,163228451,59386332,154311445,288723364,22495024,191179377,17179406,132573995,1444281925,2215893336,455084468,855379321,97706891,2219131,14093319,409456907,26286732,165948821,14579345,35752684,40054423,1329879698,66768858,20184945,1120359931,15191052,17669704,385025866,109621087,351299373,404296475,34409137,973090592,18152276,19940791,829363578,11996222,21865001,37205200,19450277,364439712,542793644,191190039,46417885,60983046,2167820294,16664681,455256867,14676895,1710881768,75357513,23357795,82066670,300181817,194475085,846634963,20182094,478578230,470357978,33627414,18029055,16020654,19245896,22496235,14345566,33677778,15891963,14156778,85412404,9403902,743599406,35872795,21895068,14917754,1234790060,468517832,39957764,18026602,17851178,15174190,19671546,51640380,312544802,296363505,24777536,2180480845,345161879,18334440,762202327,620547379,47153140,19222806,2276246983,59128257,95467111,94954481,14913762,104256824,272161214,17699677,2233282904,204841064,18572660,43533499,47840385,14935628,24244836,17678156,54730258,108358161,967133442,140928543,27637371,25953115,19971990,14445542,18345986,35294738,30255833,18611348,16146513,54239985,165798058,17596056,120640652,20727041,208442526,253536357,39234189,44136028,18843227,324834917,15742946,2163177444,329865729,123483569,62733454,855593120,273813321,18301602,160589263,493121864,15614725,87792156,80938488,188632613,204127602,224182352,275675429,322653723,333500366,360645886,347466521,64689798,873141,4875721,15478750,15662761,20003350,19676647,20387595,21563402,24561336,102932090,104274999,117602839,194359565,248765957,294224506,321646852,368292391,130305390,150940204,1639748756,1282050768,371193896,267371257,54311364,1887854366,95982652,318426183,88014855,103139471,23144045,46174000,403676245,594666501,95488935,25732408,626111072,234402376,22860921,494010838,18587457,91180720,4207961,15446531,314563166,145380533,47707475,298123685,12579732,58978275,20890385,16393860,46501372,69393590,83374478,24760864,18316818,88215673,157931852,30530300,468763363,182839127,36171004,56566033,30233007,1468133850,53796731,17316722,595854486,37032310,19608297,228403233,1849348536,18644734,273615113,16715753,22054220,14688517,16714347,27029537,354221701,29956346,95629476,42716278,1809251,162748968,26222868,55323675,2187906247,74555974,302022259,143789061,559509007,20193926,1575964944,16841286,15641532,15300838,1597324129,18496432,17086094,483701025,14999172,19844126,57714568,2262142926,883458102,313159302,19223022,1122767850,375895295,26208862,2283772130,1301374621,91826119,13201312,419764595,469408036,9320852,309755530,20411630,496420759,1354890464,7102242,2228734814,86715527,596687292,357760567,1723563360,223608893,85644875,27911608,1460016181,48844884,78953563,25065495,16001409,156375999,16034244,562164937,360442117,156466613,24651708,39759481,575675721,93620724,167066499,49753604,321029318,82631496,1880454828,2275298702,300972590,19273804,27810354,1416355640,86650732,250455054,111456333,47345734,10990,19909828,185594976,2274778854,483126812,17684473,427397243,22270118,113062227,177583181,7510172,15369355,17311077,18264824,27688964,475987826,17645400,21250425,53429839,61842240,48377323,21722109,1615447254,631657132,19790241,1604444052,15103460,20652901,13774902,12094902,33031861,1964891982,31100329,16073416,25115550,142896252,109257354,41591401,7215612,1586501,12302892,55630037,67716195,22367858,29127028,192589318,12510442,7482,8833012,2671,11613712,35515414,31005149,460371116,71028123,125118607,31128730,388743786,989,217900600,280716675,743874438,30324031,30750869,451128139,18121069,178975033,12526142,21985202,1094163222,1918228742,34175976,47285504,256979481,39077431,2160596971,60615841,5272571,306834250,10836092,225301621,117640526,14632294,48800583,34284490,17171111,53978909,56461780,10753312,17385903,339754094,19754498,45743403,5814192,1124861,7865282,212463932,245095160,12534,11133442,76373,28381177,27613650,564141120,429057282,954012890,118952409,131497030,22496608,16386970,23910646,123299344,15142050,18271124,254999763,1408457989,48361925,101878960,17079526,28523687,20731596,314661596,254660986,213956450,1598979864,121707270,824157,549962062,1022147078,21525601,18270831,1058233296,18466714,403087766,12244082,2228674112,9879372,20134672,2139211,495309159,33561428,434825627,95411363,309929507,456865788,742747086,185043343,366631688,47064286,11175742,8376882,342130924,16110819,811377,1529928896,243377639,963723824,83237493,1451878254,234418976,52850138,1144882621,237548529,57111966,10642532,19658826,1604023434,1393155566,1647996986,97416190,487118986,27727639,45972160,287816744,1463789270,2228647020,42466456,1467609360,15443743,596904346,322658299,27778117,1295001,15174406,23370996,14120729,235700566,87374085,15526789,136357511,6323872,75897022,63258372,14120215,9507342,993249055,232520849,15428397,5051271,907198734,19358435,860334187,118082516,91378530,221452291,295713773,148868647,8842842,26518374,816405054,1263288692,14073093,59019225,14136335,16207462,1578141,168531961,144186376,1641384510,749520146,101964362,1167699625,701732472,275686563,76310905,293372650,389901694,105829953,211917765,18728633,116734678,202756449,7389732,50104358,509381461,490991627,67612556,15138104,9696182,210814143,104201057,24134103,15065434,19014189,119667909,258198244,701700079,235822929,172851165,15908429,547860279,15812461,1225257002,727472528,341251022,26048553,472220354,373598135,196566583,904200264,134525908,18839785,12819112,360285166,36323148,15740362,18689000,27596259,289588260,40638594,18164272,1115670186,237945778,2154419157,889974050,2158603635,162427574,429253192,207644722,1464125821,13533782,381565112,108547794,20629966,18465455,38418472,17161562,180619610,136682570,513426047,306854368,273940910,18250813,632873524,29999829,574862909,327024618,625957916,1079355888,322658873,14066920,612577026,310297935,378643551,1010645653,15537064,778820143,70283241,1240142522,121869155,1027736432,1287359551,80885440,225442825,1098985442,466096296,724416918,20849273,2726611,83424009,1419099463,322122983,91666825,318709067,609043536,2179078237,84944278,121641469,18584841,19042220,852123008,127727270,253114974,910793808,27740227,84100924,240830856,1860428197,93714983,92306628,6374602,89264343,42950930,102423027,35380758,309553018,111057129,218503228,15950086,25408081,58449246,24252078,33896484,2205386796,39912341,148062893,93011077,1777681,16115811,7273892,9546212,50085432,11759912,164856599,17316885,15811202,284234943,201518147,21232505,36623,16892321,8732322,2189503302,70111948,1214410454,6036882,29342640,389658589,45626053,13893712,449501607,22991553,195841657,18369747,209262555,21515818,23615682,16608394,384439469,226976689,16313140,9851362,16218527,24941044,472132412,16340178,31177357,178641594,2162288419,37034483,64439775,176119964,1247296152,82594895,1662687974,1374411,16197784,8287602,15931605,301244366,14062180,149180925,15514266,22144278,13492102,169534465,30000912,274652076,572609848,87818409,169021842,1400238956,20751811,1877681767,7313362,140555541,9677372,117100903,17296792,20382472,1246951472,72103163,148517828,3416421,19175209,14885620,1408384448,16641462,1227932144,33874126,28222719,23739721,16076032,14834340,749963,1642801009,109062332,550478944,86550180,14886344,13028322,62951951,5953552,80661799,1485951,20252410,38483313,21813582,227102437,550165697,610076827,43194865,226907218,15163466,54272289,1667834671,29097819,288935074,75562656,67093183,280868082,17701238,15040384,46119836,185768634,39961555,482133423,22322194,23962323,47968457,33235529,1000010898,440565290,1485433387,25081451,17773720,15143755,48804449,176461575,469612967,47653644,17919393,28008289,16228326,14111769,14296273,86598343,95695246,2165843252,534222221,14755492,20974456,14412844,14588121,979771916,97618796,1860765181,77907173,47172467,14297954,546717616,1675070168,22977061,526634228,198494684,960709321,422936661,43092107,18566095,20164296,78786944,14313489,47902921,6347872,57141571,196883764,786764,18660641,259911231,6039302,15334380,203343685,32391821,522593098,207812652,399535666,225147537,42180290,111127902,17026589,20946458,33773592,25807291,299966548,2171400301,863189960,176468814,22193361,35773039,37723353,176603549,22140082,16435365,15892011,12183532,19213877,561740267,23462787,14106829,14515835,19325156,2166704808,48075643,103865085,19562228,160486066,19906615,7030722,97732452,972651,263923033,897811,22075295,19956827,38031983,15667802,2163009578,15234886,7276862,33602654,11178902,40923595,56993835,20861943,154404805,29240040,36384443,30081493,1184354442,443944804,1666038950,604922608,17183370,45762945,283198095,16860092,243284052,308245641,971147274,19534873,1880725393,362642209,243236419,104884371,119714092,23782253,20790033,101841773,22808434,19815609,450946343,308258036,907382738,14873117,16387212,47678555,131226723,266054237,24496544,55078954,10926872,23124458,96644479,13493302,123231225,158495061,1009878901,31953365,380153789,281878733,97883743,535993853,14844076,28350888,107175080,82447525,14079041,40705991,60840767,1705817688,771797250,19968983,434957751,90290461,293303534,21918310,32396502,1947301,16955991,16491683,921878857,15164565,94214332,2992751,676033,17369005,84460442,1582853809,547079100,34739408,135890983,59557368,141057092,239996599,610994398,16272052,21770050,387234867,23034607,80937844,40816246,35236603,239568469,37486660,14323791,14116034,182086979,393465677,572619533,47856457,32584728,95151374,76183,24575229,19766166,57263671,258684352,380648579,14657745,24095957,102322678,15078406,152628803,15291489,408627912,1579596458,44309422,59565766,38859736,68044757,43274511,100748297,8117362,245208137,78271006,8805142,23054053,48957003,293063175,91272704,866613794,134758540,1954179860,21565678,15269964,14440999,56449023,73043514,118975084,16977059,117396160,198916706,331136088,79498684,975765924,344504956,105998402,76134964,438152067,77677426,21919837,19027273,548116457,62356591,1945505580,146469194,499236335,183177218,1114865460,329628561,1157111888,216094714,1349588593,1111404056,1299995892,114573522,110692399,297920799,371795336,85760252,105400144,214097804,1616360412,1605865171,24939473,17396170,917105330,117027371,59472131,1336611008,610232748,228174088,1911787543,213831149,209754653,16168804,18895336,20619143,61384123,18283526,180996411,156989464,247104242,696053,3369501,25721557,21152157,385706946,42313640,613495552,200553940,1341233137,764332561,1028643932,1113541,11092842,54270424,81965017,393798581,280159870,17549096,300290452,1627535185,220219500,255542457,1213574630,870283597,1117043418,30528307,66198455,960920364,11170072,326184086,154016912,1889568127,48863721,483302252,15687090,1002513128,18507505,24253723,64474365,226595853,17239105,18631445,55355654,115702663,360282270,1728882062,15464697,96015193,470847338,15300187,36753,1446255144,191700412,383854361,252161971,1173231918,339722887,363005534,15170984,146884709,17442320,24164156,617613927,1273074444,106384372,246377868,14804589,112627753,4847281,13069712,83910272,1127009540,88494621,818679260,1293475052,33211889,822029557,21952517,478826292,18174747,77438776,60928769,56681826,51037540,84123196,14998416,1397615262,33732691,33546635,1904656634,128900117,49102743,311568175,102087933,34944596,48755549,426112230,61903300,1491382866,488743376,214641138,260371201,1673511787,2553151,133880286,299223576,360047784,96694146,16463078,1280792054,16253060,18042484,228223882,16353245,21866842,21942241,19962224,720364819,16349800,114670081,344288321,1904781277,40556633,30435298,16463237,18080108,706529336,14165865,199072293,348457097,80867152,21642935,18171927,465129155,151670855,50443212,1364098368,1481408358,16869577,589748944,221269569,17758861,26099914,34963979,52051571,528987149,24205972,456478383,1372641625,3927611,19002348,1339835893,618542623,407136748,74024358,34714432,16119090,300428054,56510427,59304820,16589148,53777247,27794232,9670142,1767741,22824237,111712308,54704874,18686907,87699418,30942337,264124770,495650403,540734980,128172483,152958374,31901869,20890584,1240317522,20257132,10304172,8668862,17918561,42226885,117882437,17793878,14123908,128288109,16105705,81644488,244276540,37595712,19116515,13404152,39279393,277011035,276567401,117576644,634243972,622439778,38002103,40860228,578650970,375858149,19435213,421574883,101365366,26957009,1429751,186648261,18438933,344039566,187080626,7764332,1020058453,41814169,1330457336,156889951,18161668,451256188,43922300,23030211,14565991,39030654,59936143,43289988,210319337,73190286,25823816,44078873,40303327,15655247,48706493,2518321,212454830,14422439,137223549,141545751,21493664,4310571,149126628,18834071,654143,17991281,166694329,394635011,15115726,911455968,16119772,14168524,190645655,1558669614,41663308,1868400020,188844898,15237501,87502184,18464437,77304134,7416752,180667856,220906392,578411542,440413534,11696512,195840784,1499013618,18659273,14552083,16666502,20829376,14471007,20178419,136109646,364481519,112816663,877305698,2400631,227381114,16399949,135198678,266979999,52734226,18819380,134855087,38244174,57411021,42889683,491851440,1289593933,1201661238,17673012,180200031,18505952,78564613,143499407,24887083,14504258,449678218,59591909,416204683,774393817,321025003,175426542,55308417,24209685,375676119,602774686,1849889239,681473,18155543,22836988,42708195,14982625,61014911,59268383,594617548,32547753,813477602,14822021,15411858,944467345,15613664,62316989,9411482,21689161,18991464,17467341,7150532,14591033,142411092,107842978,15169889,33629924,123289066,23227841,32686298,24870244,616485017,102420827,126664186,19402238,289485255,252787550,50263701,128615552,50005787,16091351,13567742,16033525,24815411,125184430,263830118,112245265,29061341,1401100357,14085704,181912222,66130611,18245041,1344951,90035806,17486677,132297131,185855695,25029672,126302054,185680080,870834091,29309901,16041234,47821033,1517267136,284883861,18478188,65155179,18919088,1447394395,189998613,26607725,109043700,34227622,78635037,331817345,20153725,331816614,8067002,83996344,36444204,17813980,39451367,17285007,21687414,228077059,14742549,1430882924,838179889,62850214,207526260,13766492,1571270053,838464523,1249676186,63815293,300010853,16985214,41588397,1377937416,1178700896,870325686,107127119,169559219,889180130,1131118056,202890266,152696429,142614009,109583234,47371913,27557391,21706413,18487054,808561,137096072,112695981,1117121358,345251750,1645605294,298597381,70736359,7994972,490495458,59924621,279614869,54399803,290593825,430058230,637109692,188266169,572225652,594280020,128292609,846828564,1371909548,9534522,1467703272,176300862,417631398,15585039,221041703,14761795,268357486,27681019,816653,15952509,18781150,97523297,195419597,47539748,92183278,32540650,382417301,43092459,1027394472,27610987,18230846,56487200,12263542,868571394,29854529,711932869,573918122,211154075,328838071,925931544,1058864162,1311811896,70574234,15828276,114231889,75742264,923883858,539448537,183898082,26613480,1530850933,14617499,100610221,94091863,92241457,601170594,253998571,955698157,152954171,280559948,133751142,8241232,347698644,89735094,634812478,69097128,1018872102,777308683,203253392,737826008,18351581,135488533,22530207,108045600,20306034,96468445,8108972,297152824,356955821,214402290,123006717,184513694,546947988,83740333,1166663852,18365496,99919360,287932099,291897182,12726792,148292070,55374753,1123693536,547300420,26566469,397455346,15922651,37104266,38245723,14483124,16600687,642833,1367176327,24004475,16319594,20095865,39697444,601295358,1305156254,1455320918,32868144,28006501,15903378,16304004,631174177,1110262956,25454556,1201714944,1486296062,293278876,18453284,186154646,321202808,407046019,142669299,65707359,65647594,1408488632,88318895,291510996,46731762,972154164,15662133,479670287,43151136,34024882,480153399,1337535175,20729031,20279370,185809250,602626619,40627145,369875107,12807482,353340280,1308830929,11232732,29472803,9210392,790080344,22222965,204416862,13298072,377654770,44703654,22921528,57537847,24817859,6758002,83643610,65491605,23432012,147305691,14304710,414379328,15220336,786939553,18109873,558465496,196457689,23949947,1216619071,226471593,391602037,55034379,6409412,26348016,173240772,134309619,248293692,19873593,19401550,40356855,15254839,30422794,349540312,866370582,562304281,15646875,283313600,20454896,180088363,349189238,13474412,457603095,1050991014,616879823,83874770,105203181,16434221,233604842,6830032,16564282,814338416,18019555,218951054,235130370,23290408,586893303,237774782,726951074,873927577,534649806,47986971,116880409,21077860,18008484,489690950,103493067,16583845,25407830,281889829,181195091,15964196,308429376,106776691,18020985,21251300,18646159,13566872,288388335,51241574,1170072032,112526560,14446054,39005137,15099133,18352378,14276189,22028564,22845770,74635290,457171434,130268681,126407166,39538956,203114508,46699613,362860027,26908178,165568433,17934812,164397041,27862718,84958161,130033510,48219046,326255267,43464013,39796874,39868135,404532969,47011573,866829151,1123401283,14254183,538237177,362278535,157684364,24459544,78783,69354861,135405245,15869453,14484418,380532380,25919183,291810580,492752830,34311766,60498741,47697756,40711814,22213141,112475924,14308508,40924082,435228319,50371114,1158638582,18291099,386146285,840238500,17162991,52814770,37269308,234141596,226631680,349785521,349289363,177569765,61187080,19195460,325100194,417201918,14069365,15189391,487198119,16477771,1501471,21633721,24387882,17493949,14083763,38936142,1119295699,189601534,44196397,57295940,15102849,17765336,20770348,147168151,22018258,14560460,8634412,20444181,15066760,13145012,13395932,1093077343,20536103,125767077,2621591,48569578,18228075,15504885,1120626926,277198961,7593662,39832918,14630696,792780432,14255407,22137832,1099234603,97757027,91270013,15496147,329557752,241368542,116475919,16868686,224180296,551481276,944484146,16744509,599298339,282728979,1115301194,220135900,11030882,33522604,34113439,182454948,17623957,293984358,1807011,111400999,70449178,364728802,18691328,25880588,17136568,622628412,288994624,14963760,14733744,1077233198,208546826,387383722,144703320,58740930,103036462,516684914,102115921,39564433,20010925,15919988,47635720,4952941,285908150,28517623,258896387,25484126,119464925,45552104,249385348,192921396,1069129315,186154648,810709142,16752675,223890696,21925180,16675569,28368825,21012092,2811851,726628538,601981724,823098086,588387056,199798906,821401298,21301014,16194566,67390766,26336221,54583264,22862623,30785007,143964151,17288045,357031575,160010755,21844854,59159771,19605981,87113558,989633635,717034813,14096763,13524182,9532402,236026761,24795000,23342802,19306810,161044052,30893732,916735110,65783818,16460682,22000957,15119529,350415705,120868481,221167035,114782468,20193857,27582945,23629255,709871912,273012474,424595791,44438256,375971107,366193785,20512928,15838036,109099014,110639889,569839623,465070708,19532804,192231853,338828458,22049097,399679253,356834376,212071519,907209564,48363858,703388616,50338601,60694237,17502416,14179819,178770014,20714592,14738561,136998045,118747545,1305941,16012783,19655830,142843687,925999250,376005446,370751904,353465310,123425024,170128697,816325328,11620892,20182089,31127446,14529929,32521584,21111896,16157855,131144091,28181835,15677585,120180668,46817943,26860506,22772264,122396513,21215620,103949895,80638910,16359843,1025521,45399148,369505837,20196398,297532865,6112442,46557945,57770539,278776049,26754354,55394190,595515713,257553324,16125224,123327472,17908972,279162316,138020182,120233868,21415998,784122984,35220556,442904755,118273546,14412533,18909534,19107878,95740980,18172905,203192992,19746543,259565941,5779782,527743455,24810179,190450243,380642128,32448722,529154224,29764993,137340182,109524559,15865717,27302376,18291873,322245908,381104554,215161294,23153246,544638548,19834403,116821890,26858764,103115805,18739693,23486744,817407956,13148382,928582106,473620611,877003172,57356719,93475451,9720542,20262083,371994104,353480777,74820061,75944553,199498184,39185716,67144836,1489691,133315811,24081172,109484552,15187243,16340092,19935420,22017317,64141011,21693060,22770193,400196836,5174191,123626700,15990298,18931517,632301127,145773567,205839574,81896993,90545097,16566825,19550262,72445766,16197345,377027721,104263696,293735479,10752192,15685721,7848802],"next_cursor":1417903878302254556,"next_cursor_str":"1417903878302254556","previous_cursor":0,"previous_cursor_str":"0"}
View
1 testdata/get_friend_ids_1.json
@@ -0,0 +1 @@
+{"ids":[485963620,65375759,116704750,16908110,20866038,15456784,135515077,413234849,23892927,4283311,18486586,45577446,2267241,24718372,20779448,36430363,914018270,152408142,916100768,95418595,59514202,170952277,808092948,146569971,18913827,14204194,48235139,60189624,55949344,16469809,836283571,14326086,75533,460470940,778057,571025703,1140451,16358930,586193370,23840585,617299845,20352048,16618587,138141495,8525402,344425346,119782567,31310158,15113565,17409240,343523535,15665499,8220482,14956372,22903162,84194879,18638090,23583214,29491022,192942213,492328463,43383357,20342387,59634656,111216929,950531,3554721,77220986,28646364,21979896,765545706,191005995,122137723,86330674,273977738,846187382,22067976,66247691,17614582,239931382,51096731,8714762,103719755,224349882,20872592,49756585,16843806,63870858,14427350,14660933,20172221,19746393,19742740,19746495,19746268,15537164,14363806,245448121,40305346,18768691,19409006,43144360,41433870,14427372,38102814,50442406,15838770,30067519,18643531,96783382,10913042,62917637,432930849,14522630,18640668,35251183,35992925,52214572,11942832,26043704,234485044,237019614,190388631,580191183,622804972,237845487,564131974,54424058,632015726,18406495,548047639,15431856,8320432,10716292,21436960,15234407,14987728,14848513,16130330,13462442,17089636,117662694,46319532,7429892,15032736,18393773,128956175,22026842,802677139,587639522,312254799,373373336,347998327,22053725,211209877,70535360,95493980,33929775,15659248,23055689,25726636,27845025,442870573,386461356,362051343,25832541,787799,27049466,14552720,119826247,105225912,214190858,16149338,84617980,81497957,248826162,17078632,36471939,104942217,19201509,590300532,17141268,56440721,590195750,31475315,21303235,16102081,16331756,16332498,380228140,204832963,778160544,323431504,357533790,32513043,80354646,55191723,262542624,101348982,125400908,351832182,15666380,594736235,545195543,303483832,619247259,34278838,617825073,115417134,302076301,18026912,201319817,301239030,279323718,261959272,607684948,55356886,43117170,15947277,33575662,619950540,110967761,14075928,427057264,626854369,185357063,14184651,30715662,41147062,2090121,17026643,15468275,16129920,16349125,73238146,38516217,112740986,164555798,20796192,16456004,15763818,33439673,255128753,36104874,35318803,198614401,18492549,16460993,19085082,49988522,102836256,30308764,100838279,18620828,216868739,100936791,27978241,296462011,14458660,81934163,30120541,16843817,18164420,46836666,17971635,1183041,26863892,767,740109097,61306578,11211372,814001,1046661,53280402,14217740,5971922,11229162,12611642,14606395,249478001,484991854,15402623,14807898,14702533,705166483,15165493,19789439,16619832,16677622,14696463,134736009,93513698,275251813,20389458,5450132,121953044,14485423,15698903,52758395,7093352,735096642,376949805,24930840,50115087,210141126,236622791,1917731,150656075,56770914,730902326,552985513,109266393,480120122,10846402,130238521,17630125,243821406,24493890,19412541,376353997,194347664,17695016,193064494,211543116,33256849,16042794,15865896,50090907,20858691,36367130,136725784,135316691,14934440,70739029,15507433,28164923,453510918,14677919,15294166,15473958,14385676,64748159,30915636,58113278,154202677,38441030,299258001,60654735,74567808,346569891,15838694,24399191,131570276,17093768,1769191,18696996,95428712,353003932,146123790,198584761,175691292,13787402,143912910,39800314,46190055,128569463,109298652,16888712,121309596,248742334,46220856,14325188,30927826,38156420,206001945,14962779,495300028,21875834,101081754,337808606,78361556,456864723,124603983,46577579,54208274,15066876,606549267,28450164,501993054,17001490,28044313,227117671,350509998,245603564,53435986,384923143,275561685,404851901,39350796,385183010,38733200,742143,234015324,320199062,495263448,20071361,424274065,137706974,8861182,16543760,454313925,34920742,586909317,594723485,607867793,16023029,33857883,51261818,14520293,571371777,41697083,90959399,42551075,35235695,97262484,19564105,594911608,585246185,16117029,598443842,18214621,20867568,23698358,48144050,17374418,549029322,36025916,363490884,12648652,39530187,79997785,104585489,59423440,57372601,130933196,15116624,14710129,16062207,495612497,19649450,53141844,22952405,18176147,54300251,506990949,18480977,29912873,37710752,17283244,19515424,11180212,15500649,18569484,105918870,17632297,536694088,250884927,71882824,509063626,49934930,490848670,34743251,48473838,28200389,58489734,331286084,331450910,56052405,481066283,17367404,89215087,19884952,145306695,104267638,132235973,11988052,9692022,83047883,14061849,297556877,30434892,46442771,14434011,20605481,147808148,391409009,7433772,17820399,754485,14251225,9505502,498123757,129906416,16684911,85616866,20193243,122215796,22997361,54396291,18918414,17344324,67774992,50325797,20068053,18943897,309233470,18164887,216084954,9334532,22994700,84465907,465158654,22300059,15974368,285073363,192764972,189376144,18203287,338474200,17505090,112756074,436006103,18685382,407019221,37926315,36716860,66685269,17045089,70418177,376162509,93682627,14505838,116654517,56212232,18396070,15693493,18246347,24619328,19617284,414284406,35031059,146183346,172632175,96098703,24283263,148435933,233226613,65108529,20642310,234270825,20609518,248239533,23503181,45584305,31861048,89898430,407889268,33282082,236104191,9313032,25020347,19011119,89707859,16213646,21689801,159684911,8291102,23805874,21746623,34711477,282865138,15604930,18641695,72389498,191287999,201421969,274295451,77641370,264234073,261025036,112015650,20481118,16495544,43913045,27052547,360413441,13691782,14194740,286880935,202312445,119166791,21969867,48803664,16733088,17074051,77105290,18509870,106929968,22382110,13631142,330502724,16341357,115252480,1417921,366371278,188019636,19996524,44165613,16939891,17498747,94168199,105675677,240691392,258607721,14940354,16988038,16299627,25531732,219062922,304627263,15990809,317256470,174421336,71869296,39765940,44753284,16744473,12040102,38584206,16204696,49164309,28343270,303994581,28410253,21821945,283865965,97691156,213107009,15200719,14669951,99163691,15726728,24111487,202699897,20955270,418,28962525,15412727,21492467,263685349,18884857,41622671,94129050,22859855,14173315,24235302,231854033,18537794,19086456,213575929,101614424,27796165,18421509,18078425,305005427,31053563,258885469,12011422,6576492,7590112,15292471,15066958,43425975,18906097,6145862,14976721,21416856,17494010,232268199,239461632,37029298,22320759,59599859,258407797,58393592,301012485,72667138,54885334,22215485,40164352,38421062,80684362,22883726,6362172,113469866,15803768,21220931,222636878,21373652,22938645,14085070,89580481,23414569,11635932,110415536,18146725,16020435,21312469,77517399,21874164,104589290,51747161,130836664,11190002,818155,54660914,14955620,17902047,15936311,18638502,313537605,363450850,179973018,14156198,18594598,8862532,5770442,14412888,22656089,22046083,220907703,317133497,49689858,154005444,16972068,148902413,16588095,19570075,125637896,79241648,14515799,14802885,71353416,119203363,47392876,35761403,273010546,317880197,49251910,70764269,273197054,273000680,61536959,258458683,21206042,62925053,19422317,20957191,17488526,18023140,41093522,42533606,52528502,20055774,18089442,84376589,81000114,34919745,19170880,40047236,18725659,31187903,24126361,88710001,104299877,96795310,22105535,23314335,100607500,46751590,14928734,93094538,54981205,22059385,20933649,18776351,53473610,49732680,112480876,290106314,257740770,313493727,313418943,21009763,64400465,20029306,20527509,30304152,132926588,50885929,30961267,94581061,23365014,19787735,313553844,293750778,166196682,73479535,14335498,198567904,27476041,43260020,22571195,15726586,106110662,157467048,20438137,29976734,143491086,15461733,213539036,24235368,24913022,23067226,299485058,39208156,310913336,37399786,51381252,18622756,18451653,43395268,21619806,29211557,10301842,140195976,15840979,39756122,15360434,115441158,119905863,175295959,105417422,168776165,152314419,133379712,135604202,144286635,18291500,67378554,299798272,250392390,20375912,232552553,106887653,22362043,15637549,104502359,203532507,168912732,34903365,30028674,21875245,16064403,51606046,24405414,89317678,18488014,15456235,241691709,236516604,40368131,37687633,759251,57198996,26930438,18323373,4970411,164400667,23638014,128547882,16162201,14112563,18907744,14463012,19187439,138797212,270379099,18130251,191159103,16146731,35761879,14182620,104932756,19038395,248288710,77052243,38812075,259292849,21029359,17136310,267919533,26134082,37077107,15031724,69818419,191500375,29558838,65535634,53523503,224362254,6017542,200059931,296622807,4790881,48078807,78927772,33506504,279136688,48449654,18383373,47771556,55705595,17548215,134891395,290101954,59929401,262137156,175273935,23493152,79808570,20682357,297563101,225428772,8449542,19949151,227771924,122657422,26207922,25376735,19221220,143063931,36161186,41712825,19725644,29416787,228602896,21437682,110263006,21129234,21046254,166393507,13590162,16951434,188000721,41351252,254621726,17698956,89593573,17413572,113787262,109545333,67406327,85636450,133929049,17595958,24823749,50005441,35804467,16544818,35013184,85251917,31726915,36755482,107102609,16028241,44538849,35778794,267999603,36953109,22271644,26792275,35002876,46048042,22894243,10235102,16017472,24771318,15042296,41619175,22642788,5392522,17471979,65946380,16826617,14159148,15967738,173643681,21755786,15864446,39000115,38885626,161329769,166607010,85641096,17393196,1652541,199935082,16581604,30031547,49734054,29008249,9627102,14262811,19201818,14708814,16233170,15808765,90484508,46598192,137876169,23484039,22737278,115485051,18949452,20060293,18510860,11107172,26667264,223959958,49757093,245874349,14955722,28603812,36711678,66965843,18486243,34615731,15445967,58203491,5920532,85642187,55419844,41501555,15982558,147493361,17265423,14778733,16895951,106840674,12456402,69519838,35810531,69571569,25886862,69231483,50517161,26857202,17899109,50393960,16688755,19327532,99636351,116763916,15769774,22341950,15096075,75069067,11859822,18336459,39511166,19711750,23427122,19893321,15821039,56420936,102278432,82127917,19662718,39716211,23967554,20596281,34889448,14286806,22670999,18038892,67101140,88745438,29562655,16982863,14113952,1282161,88615688,1049671,140753036,14918432,76674458,78427460,16866956,101889465,19881931,128724886,17220934,18713552,21786618,231600344,147383043,117982625,84445191,114493453,32506859,179478771,29374498,24128009,19637934,17469289,9763482,15222806,31630054,15472700,140803376,15862891,43119695,260741931,14559745,257624526,19918353,5831802,149102306,52126417,10017542,237850595,18444468,15930000,14385046,21516577,53208324,24223641,23451598,15458181,15714547,14266598,65965412,36843988,21166728,55630632,15227791,22695157,6875072,16017475,102581666,14606079,15905103,26784273,17286101,88722311,18734088,65909759,26755141,70260544,21866534,22167056,33098495,171683695,43078165,180147957,19621110,29774968,88392301,32423136,74725264,146548246,269420810,18196002,14199378,22341016,111416652,14647570,43166813,34317032,116498184,57741304,163844242,176456922,69417670,36771809,13693032,25155290,18227455,4898091,1536811,16630098,59479958,16145875,15224867,30043495,55338739,46164502,20402945,15935591,23092890,27860681,17006157,216799530,16670996,142672514,135917962,270956213,20562637,156016878,18622869,168295477,14348157,36047098,14514804,32359921,16955870,59486068,5120691,15568127,44401911,7215512,24898621,21968928,34096609,44177383,14050550,20281776,95323720,19954039,18784376,13759952,16227675,14235672,109915584,16684773,646893,83130916,763699,17070899,13017192,17453131,14191291,42204560,27787530,1403031,8510242,49301068,14834076,16997090,44153483,23014736,102448827,29493965,8161232,6877872,33955377,15198966,11695602,16229491,52296815,57341938,59910042,6245822,19915362,16348549,94667985,14463924,21315031,70983247,16244517,15433693,26217653,26213879,14615871,166252256,17054817,813286,32361431,5988062,16366271,19539716,96930772,11695472,59460397,25098482,24602720,24881081,28212315,21093785,16511394,16958346,27830610,33933259,120181944,16834046,16257853,19673700,15947602,20608192,145692441,116469425,28657802,20582958,17596622,219357440,14634720,17463923,17683482,146620155,16025112,16648790,40932856,278026635,20776432,124066751,15473639,22705078,262528377,95943830,17605855,19754094,61853389,17855157,624413,19430233,108432404,56440209,39803436,16892445,51497096,70052473,108408529,177676462,101878696,18869578,45670812,154233774,105831673,22952596,268873642,88966020,15779216,14900137,20608910,15220806,18136692,17217640,19658936,18230738,16878156,20114753,29232503,19282280,30313925,45874509,15987497,31078583,16470495,127997108,19722699,23959074,18325781,98928848,160528623,17423992,807095,25841417,16245906,121598314,128126054,8963722,15110431,4620451,17842366,16895274,37662914,14603515,175844074,172280127,28583197,34554134,21581503,8295072,19802879,1435461,16817883,15165502,16580226,15492359,18593276,26003862,19071682,20031296,32567081,43435902,16379018,18201160,113420831,17781165,33998183,44705716,22035690,5402612,18736652,21232507,22762908,11433152,14738750,18883998,428333,18581009,16669075,21886024,45885508,15740491,20998647,116559622,21388284,39103115,810424,15173291,15762575,11178672,16308922,62780688,24919888,36683668,89711639,15489945,15463610,130160106,3108351,11348282,14342564,15309804,19915329,6519522,19993545,24886900,17004618,110595088],"next_cursor":0,"next_cursor_str":"0","previous_cursor":-1417901385419688902,"previous_cursor_str":"-1417901385419688902"}
View
26,701 testdata/get_friends_0.json
26,701 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
26,548 testdata/get_friends_1.json
26,548 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
27,010 testdata/get_friends_2.json
27,010 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
25,202 testdata/get_friends_3.json
25,202 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2,445 testdata/get_friends_4.json
2,445 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
26,427 testdata/get_friends_paged.json
26,427 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
12,010 testdata/get_friends_paged_additional_params.json
12,010 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
26,630 testdata/get_friends_paged_uid.json
26,630 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
262 tests/test_api_30.py
@@ -0,0 +1,262 @@
+# encoding: utf-8
+
+import json
+import sys
+import unittest
+
+import twitter
+import responses
+
+
+class ErrNull(object):
+ """ Suppress output of tests while writing to stdout or stderr. This just
+ takes in data and does nothing with it.
+ """
+
+ def write(self, data):
+ pass
+
+
+class ApiTest(unittest.TestCase):
+
+ def setUp(self):
+ self.api = twitter.Api(
+ consumer_key='test',
+ consumer_secret='test',
+ access_token_key='test',
+ access_token_secret='test',
+ sleep_on_rate_limit=False)
+ self.base_url = 'https://api.twitter.com/1.1'
+ self._stderr = sys.stderr
+ sys.stderr = ErrNull()
+
+ def tearDown(self):
+ sys.stderr = self._stderr
+ pass
+
+ @responses.activate
+ def testGetFriendIDs(self):
+ # First request for first 5000 friends
+ with open('testdata/get_friend_ids_0.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/ids.json?screen_name=EricHolthaus&count=5000&cursor=-1'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ # Second (last) request for remaining friends
+ with open('testdata/get_friend_ids_1.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/ids.json?count=5000&screen_name=EricHolthaus&cursor=1417903878302254556'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ resp = self.api.GetFriendIDs(screen_name='EricHolthaus')
+ self.assertTrue(type(resp) is list)
+ self.assertEqual(len(resp), 6452)
+ self.assertTrue(type(resp[0]) is int)
+
+ @responses.activate
+ def testGetFriendIDsPaged(self):
+ with open('testdata/get_friend_ids_0.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/ids.json?count=5000&cursor=-1&screen_name=EricHolthaus'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ ncursor, pcursor, resp = self.api.GetFriendIDsPaged(screen_name='EricHolthaus')
+ self.assertLessEqual(len(resp), 5000)
+ self.assertTrue(ncursor)
+ self.assertFalse(pcursor)
+
+ @responses.activate
+ def testGetFriendsPaged(self):
+ with open('testdata/get_friends_paged.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/list.json?screen_name=codebear&count=200&cursor=-1&skip_status=False&include_user_entities=True'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ ncursor, pcursor, resp = self.api.GetFriendsPaged(screen_name='codebear', count=200)
+ self.assertEqual(ncursor, 1494734862149901956)
+ self.assertEqual(pcursor, 0)
+ self.assertEqual(len(resp), 200)
+ self.assertTrue(type(resp[0]) is twitter.User)
+
+ with open('testdata/get_friends_paged_uid.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/list.json?user_id=12&skip_status=False&cursor=-1&include_user_entities=True&count=200'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ ncursor, pcursor, resp = self.api.GetFriendsPaged(user_id=12, count=200)
+ self.assertEqual(ncursor, 1510410423140902959)
+ self.assertEqual(pcursor, 0)
+ self.assertEqual(len(resp), 200)
+ self.assertTrue(type(resp[0]) is twitter.User)
+
+ with open('testdata/get_friends_paged_additional_params.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/list.json?include_user_entities=True&user_id=12&count=200&cursor=-1&skip_status=True'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ ncursor, pcursor, resp = self.api.GetFriendsPaged(user_id=12,
+ count=200,
+ skip_status=True,
+ include_user_entities=True)
+ self.assertEqual(ncursor, 1510492845088954664)
+ self.assertEqual(pcursor, 0)
+ self.assertEqual(len(resp), 200)
+ self.assertTrue(type(resp[0]) is twitter.User)
+
+ @responses.activate
+ def testGetFriends(self):
+
+ """
+ This is tedious, but the point is to add a responses endpoint for
+ each call that GetFriends() is going to make against the API and
+ have it return the appropriate json data.
+ """
+
+ cursor = -1
+ for i in range(0, 5):
+ with open('testdata/get_friends_{0}.json'.format(i)) as f:
+ resp_data = f.read()
+ endpoint = '/friends/list.json?screen_name=codebear&count=200&skip_status=False&include_user_entities=True&cursor={0}'.format(cursor)
+
+ responses.add(
+ responses.GET,
+ '{base_url}{endpoint}'.format(
+ base_url=self.api.base_url,
+ endpoint=endpoint),
+ body=resp_data, match_querystring=True, status=200)
+
+ cursor = json.loads(resp_data)['next_cursor']
+
+ resp = self.api.GetFriends(screen_name='codebear')
+ self.assertEqual(len(resp), 819)
+
+ @responses.activate
+ def testGetFriendsWithLimit(self):
+ with open('testdata/get_friends_0.json') as f:
+ resp_data = f.read()
+
+ responses.add(
+ responses.GET,
+ '{base_url}/friends/list.json?include_user_entities=True&skip_status=False&screen_name=codebear&count=200&cursor=-1'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ resp = self.api.GetFriends(screen_name='codebear', limit_users=200)
+ self.assertEqual(len(resp), 200)
+
+ def testFriendsErrorChecking(self):
+ self.assertRaises(
+ twitter.TwitterError,
+ lambda: self.api.GetFriends(screen_name='jack',
+ limit_users='infinity'))
+ self.assertRaises(
+ twitter.TwitterError,
+ lambda: self.api.GetFriendsPaged(screen_name='jack',
+ count='infinity'))
+
+ @responses.activate
+ def testGetFollowersIDs(self):
+ # First request for first 5000 followers
+ with open('testdata/get_follower_ids_0.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/followers/ids.json?count=5000&cursor=-1&screen_name=GirlsMakeGames'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ # Second (last) request for remaining followers
+ with open('testdata/get_follower_ids_1.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/followers/ids.json?cursor=1482201362283529597&count=5000&screen_name=GirlsMakeGames'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ resp = self.api.GetFollowerIDs(screen_name='GirlsMakeGames')
+ self.assertTrue(type(resp) is list)
+ self.assertEqual(len(resp), 7885)
+ self.assertTrue(type(resp[0]) is int)
+
+ @responses.activate
+ def testGetFollowers(self):
+ # First request for first 200 followers
+ with open('testdata/get_followers_0.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/followers/list.json?include_user_entities=True&count=200&screen_name=himawari8bot&skip_status=False&cursor=-1'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ # Second (last) request for remaining followers
+ with open('testdata/get_followers_1.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/followers/list.json?include_user_entities=True&skip_status=False&count=200&screen_name=himawari8bot&cursor=1516850034842747602'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+ resp = self.api.GetFollowers(screen_name='himawari8bot')
+ self.assertTrue(type(resp) is list)
+ self.assertTrue(type(resp[0]) is twitter.User)
+ self.assertEqual(len(resp), 335)
+
+ @responses.activate
+ def testGetFollowersPaged(self):
+ with open('testdata/get_followers_0.json') as f:
+ resp_data = f.read()
+ responses.add(
+ responses.GET,
+ '{base_url}/followers/list.json?include_user_entities=True&count=200&screen_name=himawari8bot&skip_status=False&cursor=-1'.format(
+ base_url=self.api.base_url),
+ body=resp_data,
+ match_querystring=True,
+ status=200)
+
+ ncursor, pcursor, resp = self.api.GetFollowersPaged(screen_name='himawari8bot')
+
+ self.assertTrue(type(resp) is list)
+ self.assertTrue(type(resp[0]) is twitter.User)
+ self.assertEqual(len(resp), 200)

0 comments on commit 326a451

Please sign in to comment.
Something went wrong with that request. Please try again.