teststeam.py 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. import unittest
  2. from mock import Mock, patch, MagicMock
  3. from django.conf import settings
  4. from hackathon.scripts.steam import *
  5. class SteamTests(unittest.TestCase):
  6. def setup(self):
  7. self.API_URL = 'http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/'
  8. self.APIKEY = '231E98D442E52B87110816C3D5114A1D'
  9. self.userID = 'Marorin'
  10. self.steamnum = '76561197997115778'
  11. def testGetUserIDNum(self):
  12. '''Test for steam.py method'''
  13. # Pulling from setUp
  14. userID = self.userID
  15. API_URL = self.API_URL
  16. APIKEY = self.APIKEY
  17. # constructing the URL
  18. self.url = API_URL + '?' + APIKEY + '&' + userID
  19. with patch('hackathon.scripts.steam.steamIDpulling') as mock_steamIDPulling:
  20. # Mocking the return value of this method.
  21. mock_steamIDpulling = 76561197997115778
  22. self.assertEqual(steamIDPulling(userID,APIKEY),mock_steamIDpulling)
  23. def testgamespulling(self):
  24. '''Test gamesPulling method'''
  25. with patch('hackathon.scripts.steam.gamesPulling) as mock_gamesPulling:
  26. jsonList = [{
  27. "appid": 4000,
  28. "name": "Garry's Mod",
  29. "playtime_forever": 0,
  30. "img_icon_url": "d9101cbeddcc4ff06c7fa1936c3f381b0bbf2e92",
  31. "img_logo_url": "dca12980667e32ab072d79f5dbe91884056a03a2",
  32. "has_community_visible_stats": true
  33. },
  34. {
  35. "appid": 6550,
  36. "name": "Devil May Cry 3: Special Edition",
  37. "playtime_forever": 217,
  38. "img_icon_url": "5c216acd743413bee9ae18c0d5302e5939ca689f",
  39. "img_logo_url": "b26ae9eee26c206b2b3bfab7d365f707e20854a3"
  40. },
  41. {
  42. "appid": 10500,
  43. "name": "Empire: Total War",
  44. "playtime_forever": 0,
  45. "img_icon_url": "dc10f7bad53d3d922c196d116b1c5d6a4b274768",
  46. "img_logo_url": "d60c77df97439e8434f0d0be9c3e2d9f39699991",
  47. "has_community_visible_stats": true
  48. },
  49. {
  50. "appid": 17460,
  51. "name": "Mass Effect",
  52. "playtime_forever": 1242,
  53. "img_icon_url": "57be81f70afa48c65437df93d75ba167a29687bc",
  54. "img_logo_url": "7501ea5009533fa5c017ec1f4b94725d67ad4936"
  55. },
  56. {
  57. "appid": 12810,
  58. "name": "Overlord II",
  59. "playtime_forever": 0,
  60. "img_icon_url": "cc38122745bd44454e7e122e86023fb35e652d9d",
  61. "img_logo_url": "7107ed1429c4be7637571fdf262f61af6bc7d4a2"
  62. },
  63. {
  64. "appid": 45700,
  65. "name": "Devil May Cry 4",
  66. "playtime_forever": 925,
  67. "img_icon_url": "1f869ad15ffdc1eb406c5d1635c9c0efb2e91f12",
  68. "img_logo_url": "5b274e94aec7806da9a1b5ba5334668781ff0fd2"
  69. },
  70. {
  71. "appid": 24980,
  72. "name": "Mass Effect 2",
  73. "playtime_forever": 4040,
  74. "img_icon_url": "e6f3b9b0762fd4d42a732abfc41887f6c5903a52",
  75. "img_logo_url": "d446fe6d77c9f434cd7fd871400b978fc01fb4e7"
  76. },
  77. {
  78. "appid": 4540,
  79. "name": "Titan Quest",
  80. "playtime_forever": 0,
  81. "img_icon_url": "d59f857aed0d38c69960a9d80e3d23e0863f4e01",
  82. "img_logo_url": "e82186f6efe8d5d593c2fb1b57f8b1e056e6d82e",
  83. "has_community_visible_stats": true
  84. },
  85. {
  86. "appid": 21100,
  87. "name": "F.E.A.R. 3",
  88. "playtime_forever": 0,
  89. "img_icon_url": "01b73115a3ff7315d14f0bcf7beff01ef76162b4",
  90. "img_logo_url": "d2fcf83ec76e845ed19f4ff8324304e2981af391",
  91. "has_community_visible_stats": true
  92. },
  93. {
  94. "appid": 620,
  95. "name": "Portal 2",
  96. "playtime_forever": 29,
  97. "img_icon_url": "2e478fc6874d06ae5baf0d147f6f21203291aa02",
  98. "img_logo_url": "d2a1119ddc202fab81d9b87048f495cbd6377502",
  99. "has_community_visible_stats": true
  100. },
  101. {
  102. "appid": 45760,
  103. "name": "Ultra Street Fighter IV",
  104. "playtime_forever": 111,
  105. "img_icon_url": "473fcea2eb516528608dff7f9e3e61009d76a282",
  106. "img_logo_url": "bdd481249e579f852056b51db32a6279444d4f47",
  107. "has_community_visible_stats": true
  108. },
  109. {
  110. "appid": 21090,
  111. "name": "F.E.A.R.",
  112. "playtime_forever": 0,
  113. "img_icon_url": "71f118282be5aaa34eb82506593130ecfcc6a90b",
  114. "img_logo_url": "df122e0ee9eb2a5371910ffda0f8a3382e09232e"
  115. },
  116. {
  117. "appid": 21110,
  118. "name": "F.E.A.R.: Extraction Point",
  119. "playtime_forever": 0,
  120. "img_icon_url": "153d4f89ef0bd59a0039c396ff963a31d4d5e71b",
  121. "img_logo_url": "df122e0ee9eb2a5371910ffda0f8a3382e09232e"
  122. },
  123. {
  124. "appid": 21120,
  125. "name": "F.E.A.R.: Perseus Mandate",
  126. "playtime_forever": 0,
  127. "img_icon_url": "7b1d0271f2735ca66e1cb681eb4da1a7c985d53f",
  128. "img_logo_url": "df122e0ee9eb2a5371910ffda0f8a3382e09232e"
  129. },
  130. {
  131. "appid": 16450,
  132. "name": "F.E.A.R. 2: Project Origin",
  133. "playtime_forever": 0,
  134. "img_icon_url": "6611d8b01c7a2cc3538c478c044d1e09f3140eaa",
  135. "img_logo_url": "41734347c3f05fe7dd797570130f5069c08f9d1b"
  136. },
  137. {
  138. "appid": 32800,
  139. "name": "The Lord of the Rings: War in the North",
  140. "playtime_forever": 0,
  141. "img_icon_url": "56dcf3fe99a90c25daae1cbe84319bb8af3c6ac5",
  142. "img_logo_url": "b90d899806ebaff87ed7d2cdc4d9e0a3f11b73b0",
  143. "has_community_visible_stats": true
  144. },
  145. {
  146. "appid": 107100,
  147. "name": "Bastion",
  148. "playtime_forever": 45,
  149. "img_icon_url": "8377b4460f19465c261673f76f2656bdb3288273",
  150. "img_logo_url": "d113d66ef88069d7d35a74cfaf2e2ee917f61133",
  151. "has_community_visible_stats": true
  152. },
  153. {
  154. "appid": 55230,
  155. "name": "Saints Row: The Third",
  156. "playtime_forever": 246,
  157. "img_icon_url": "ec83645f13643999e7c91da75d418053d6b56529",
  158. "img_logo_url": "1129528455a8b297fb6404cbb90e802a62881b11",
  159. "has_community_visible_stats": true
  160. },
  161. {
  162. "appid": 34270,
  163. "name": "SEGA Genesis & Mega Drive Classics",
  164. "playtime_forever": 4,
  165. "img_icon_url": "48a187fa87c58b798646a430d446dd36eeabd1a4",
  166. "img_logo_url": "212f55b3ea1a8c70427890896e93a37b49f57187",
  167. "has_community_visible_stats": true
  168. },
  169. {
  170. "appid": 71340,
  171. "name": "Sonic Generations",
  172. "playtime_forever": 520,
  173. "img_icon_url": "efda039147f0968bc726c547ff3809f98b69964a",
  174. "img_logo_url": "21ec1e24c31a50500bbddb8c8c8add451e6dcbe1",
  175. "has_community_visible_stats": true
  176. },
  177. {
  178. "appid": 72850,
  179. "name": "The Elder Scrolls V: Skyrim",
  180. "playtime_forever": 2431,
  181. "img_icon_url": "b9aca8a189abd8d6aaf09047dbb0f57582683e1c",
  182. "img_logo_url": "c5af3cde13610fca25cd17634a96d72487d21e74",
  183. "has_community_visible_stats": true
  184. },
  185. {
  186. "appid": 41070,
  187. "name": "Serious Sam 3: BFE",
  188. "playtime_forever": 0,
  189. "img_icon_url": "2e7a17d4b345ffb13ef3d9e39257c2659fe4a86b",
  190. "img_logo_url": "cc3a3c30187b5fbbd0a8861ad08b4f7d779ba239",
  191. "has_community_visible_stats": true
  192. },
  193. {
  194. "appid": 57400,
  195. "name": "Batman: Arkham City™",
  196. "playtime_forever": 1271,
  197. "img_icon_url": "4c208d1365ea5614326717ecfcfea1196ef48e70",
  198. "img_logo_url": "5456a41d4076244a6c593cbb260c3384493a7727",
  199. "has_community_visible_stats": true
  200. },
  201. {
  202. "appid": 200260,
  203. "name": "Batman: Arkham City GOTY",
  204. "playtime_forever": 592,
  205. "img_icon_url": "746ecf3ce44b2525eb7ad643e76a3b60913d2662",
  206. "img_logo_url": "9b229e12fd5ce27bd101d5862c19b1a6e3d01239",
  207. "has_community_visible_stats": true
  208. },
  209. {
  210. "appid": 108710,
  211. "name": "Alan Wake",
  212. "playtime_forever": 0,
  213. "img_icon_url": "ec7953511aaaf5a2c2093b872b5b43c6cab56462",
  214. "img_logo_url": "0f9b6613ac50bf42639ed6a2e16e9b78e846ef0a",
  215. "has_community_visible_stats": true
  216. },
  217. {
  218. "appid": 207490,
  219. "name": "Rayman Origins",
  220. "playtime_forever": 585,
  221. "img_icon_url": "1e155c2bc13e8793aed8bb61fdac798fe0d49de7",
  222. "img_logo_url": "ebfd3f8da2b0416d71724a2929740a72a6eaabf4"
  223. },
  224. {
  225. "appid": 41500,
  226. "name": "Torchlight",
  227. "playtime_forever": 130,
  228. "img_icon_url": "b2a2a43e401dce3c69898b67b1b8af4481d96b08",
  229. "img_logo_url": "e36226c6a0575e6e1838e1f915e91f8b31ab3008",
  230. "has_community_visible_stats": true
  231. },
  232. {
  233. "appid": 200710,
  234. "name": "Torchlight II",
  235. "playtime_forever": 1011,
  236. "img_icon_url": "40776762bb63c4eded37d1a2b4431a90aa57ea84",
  237. "img_logo_url": "fd37abb86628ff54ed304f75c2fb7cf75a4f6902",
  238. "has_community_visible_stats": true
  239. },
  240. {
  241. "appid": 205350,
  242. "name": "Mortal Kombat Kollection",
  243. "playtime_forever": 0,
  244. "img_icon_url": "048e463386c8f0049d6e08bbf8f5ebb5d232394f",
  245. "img_logo_url": "44281a64a93a583fdd2435036ac794e7dcc7beb8",
  246. "has_community_visible_stats": true
  247. },
  248. {
  249. "appid": 202750,
  250. "name": "Alan Wake's American Nightmare",
  251. "playtime_forever": 0,
  252. "img_icon_url": "313aabf37ed0b521ad969d3fe21768d31300f1ca",
  253. "img_logo_url": "d3593fa14e4ea8685dc6b1f71dbaa980c013ff02",
  254. "has_community_visible_stats": true
  255. },
  256. {
  257. "appid": 113200,
  258. "name": "The Binding of Isaac",
  259. "playtime_forever": 503,
  260. "img_icon_url": "383cf045ca20625db18f68ef5e95169012118b9e",
  261. "img_logo_url": "d9a7ee7e07dffed1700cb8b3b9482105b88cc5b5",
  262. "has_community_visible_stats": true
  263. },
  264. {
  265. "appid": 35140,
  266. "name": "Batman: Arkham Asylum GOTY Edition",
  267. "playtime_forever": 0,
  268. "img_icon_url": "e52f91ecb0d3f20263e96fe188de1bcc8c91643e",
  269. "img_logo_url": "172e0928b845c18491f1a8fee0dafe7a146ac129",
  270. "has_community_visible_stats": true
  271. },
  272. {
  273. "appid": 211420,
  274. "name": "Dark Souls: Prepare to Die Edition",
  275. "playtime_forever": 5309,
  276. "img_icon_url": "a24804c6c8412c8cd9d50efd06bf03fa58ff80a9",
  277. "img_logo_url": "d293c8e38f56de2c7097b2c7a975caca49029a8b",
  278. "has_community_visible_stats": true
  279. },
  280. {
  281. "appid": 204300,
  282. "name": "Awesomenauts",
  283. "playtime_forever": 9,
  284. "img_icon_url": "4996933171d0804bd0ceb7b9a0e224b3139d18ba",
  285. "img_logo_url": "a2eba6157703c60bfcc199f06df5f1568c9835bb",
  286. "has_community_visible_stats": true
  287. },
  288. {
  289. "appid": 204630,
  290. "name": "Retro City Rampage™ DX",
  291. "playtime_forever": 0,
  292. "img_icon_url": "423b87d4a5a00ff6e807558e565b0b515fadf61b",
  293. "img_logo_url": "3ca51d2767c5de3358c4f1824f1b362a9494983f",
  294. "has_community_visible_stats": true
  295. },
  296. {
  297. "appid": 214560,
  298. "name": "Mark of the Ninja",
  299. "playtime_forever": 1,
  300. "img_icon_url": "220f33169c93c2f6381cd785399fb52bfc79309f",
  301. "img_logo_url": "c20501309696e5bcda98e9e4f2649abc5720a1d1",
  302. "has_community_visible_stats": true
  303. },
  304. {
  305. "appid": 49520,
  306. "name": "Borderlands 2",
  307. "playtime_2weeks": 24,
  308. "playtime_forever": 7526,
  309. "img_icon_url": "a3f4945226e69b6196074df4c776e342d3e5a3be",
  310. "img_logo_url": "86b0fa5ddb41b4dfff7df194a017f3418130d668",
  311. "has_community_visible_stats": true
  312. },
  313. {
  314. "appid": 205950,
  315. "name": "Jet Set Radio",
  316. "playtime_forever": 644,
  317. "img_icon_url": "884cfa9f5f615e297f8c53a2010f1b63835e44b5",
  318. "img_logo_url": "3272dfd2e30df5629bfbaa851ea503e9ee28b75a",
  319. "has_community_visible_stats": true
  320. },
  321. {
  322. "appid": 213610,
  323. "name": "Sonic Adventure™ 2 ",
  324. "playtime_forever": 0,
  325. "img_icon_url": "0ff2b133493b0bf7f1c16a38a83e7053f0b90f2d",
  326. "img_logo_url": "b59ee5bd744212a79db6fd8f71aec6729671da2b",
  327. "has_community_visible_stats": true
  328. },
  329. {
  330. "appid": 205790,
  331. "name": "Dota 2 Test",
  332. "playtime_forever": 20,
  333. "img_icon_url": "",
  334. "img_logo_url": ""
  335. },
  336. {
  337. "appid": 218680,
  338. "name": "Scribblenauts Unlimited",
  339. "playtime_forever": 0,
  340. "img_icon_url": "e933a9993b7d0b905dbb37636a97339a2c277e0f",
  341. "img_logo_url": "c3f8420cd87dd772df8a35013e3538e964ecc2b8",
  342. "has_community_visible_stats": true
  343. },
  344. {
  345. "appid": 223220,
  346. "name": "Giana Sisters: Twisted Dreams",
  347. "playtime_forever": 115,
  348. "img_icon_url": "ac543243f2541e7a7728bf2165c5f3ebc57679fb",
  349. "img_logo_url": "9c8baddbab7938b5b995843d36526a30bd12bb1d",
  350. "has_community_visible_stats": true
  351. },
  352. {
  353. "appid": 4920,
  354. "name": "Natural Selection 2",
  355. "playtime_forever": 0,
  356. "img_icon_url": "df709ad4689cbfb82c2971be4adba431e755875f",
  357. "img_logo_url": "ab7b1142e17865e6d3472d3fd4b345620ec5f36f",
  358. "has_community_visible_stats": true
  359. },
  360. {
  361. "appid": 219950,
  362. "name": "NiGHTS into Dreams...",
  363. "playtime_forever": 0,
  364. "img_icon_url": "630fb86750aaa5d9ca713df086fa93d9804e9f02",
  365. "img_logo_url": "7316d46b1ce35a260ddedc6a1f7590a8b98dea92",
  366. "has_community_visible_stats": true
  367. },
  368. {
  369. "appid": 4560,
  370. "name": "Company of Heroes",
  371. "playtime_forever": 0,
  372. "img_icon_url": "64946619217da497c9b29bc817bb40dd7d28c912",
  373. "img_logo_url": "e12e8695c6766b47a089351dd9c4531e669c2a7b"
  374. },
  375. {
  376. "appid": 9340,
  377. "name": "Company of Heroes: Opposing Fronts",
  378. "playtime_forever": 0,
  379. "img_icon_url": "29725d719946c3e1aa4eea15d262c9fd789c1392",
  380. "img_logo_url": "830c99099ea2cfecfe74c41f376fc892a09dd181"
  381. },
  382. {
  383. "appid": 20540,
  384. "name": "Company of Heroes: Tales of Valor",
  385. "playtime_forever": 0,
  386. "img_icon_url": "64946619217da497c9b29bc817bb40dd7d28c912",
  387. "img_logo_url": "ed0c55412acea558d025a3e238e2b7341edc5c41"
  388. },
  389. {
  390. "appid": 43110,
  391. "name": "Metro 2033",
  392. "playtime_forever": 0,
  393. "img_icon_url": "a70fe6dc214f24107d20596f3040dbfa220ed42d",
  394. "img_logo_url": "df9a163ac1f28dfc84c93a6fc0dc51719eaef518",
  395. "has_community_visible_stats": true
  396. },
  397. {
  398. "appid": 50620,
  399. "name": "Darksiders",
  400. "playtime_forever": 925,
  401. "img_icon_url": "e429cee10d864faf2aae2ea9cd75e8e1942fbe08",
  402. "img_logo_url": "14bd29bc9b291081b63258e3bfbbf5bb655c2347",
  403. "has_community_visible_stats": true
  404. },
  405. {
  406. "appid": 55110,
  407. "name": "Red Faction: Armageddon",
  408. "playtime_forever": 0,
  409. "img_icon_url": "e59c7e741c05c9071176b270bdbb733afe55c751",
  410. "img_logo_url": "19f894d0e08dff8e284d4facc5968a1025da997d",
  411. "has_community_visible_stats": true
  412. },
  413. {
  414. "appid": 228200,
  415. "name": "Company of Heroes (New Steam Version)",
  416. "playtime_forever": 0,
  417. "img_icon_url": "df92dc239acb3cf5d3e3eba645f3df2aaf7f91ad",
  418. "img_logo_url": "87aa009e93d5aa56a55d0e9056708d018ddd6483",
  419. "has_community_visible_stats": true
  420. },
  421. {
  422. "appid": 201790,
  423. "name": "Orcs Must Die! 2",
  424. "playtime_forever": 0,
  425. "img_icon_url": "fabd8658e8e76f7c99c56f26b69d29882756f9b4",
  426. "img_logo_url": "c345d9b205f349f0e7f4e6cdf8af4d0b7d242505",
  427. "has_community_visible_stats": true
  428. },
  429. {
  430. "appid": 4570,
  431. "name": "Warhammer 40,000: Dawn of War - Game of the Year Edition",
  432. "playtime_forever": 5,
  433. "img_icon_url": "a4c7a8cce43d797c275aaf601d6855b90ba87769",
  434. "img_logo_url": "2068980dca52521b069abc109f976d72ba0b1651",
  435. "has_community_visible_stats": true
  436. },
  437. {
  438. "appid": 71230,
  439. "name": "Crazy Taxi",
  440. "playtime_forever": 0,
  441. "img_icon_url": "e71b220f8103e3515bd56de6a42395121e31e2cf",
  442. "img_logo_url": "be180e020c4e1ca0a13ec1a9006a1235b6a9eb50",
  443. "has_community_visible_stats": true
  444. },
  445. {
  446. "appid": 71240,
  447. "name": "SEGA Bass Fishing",
  448. "playtime_forever": 0,
  449. "img_icon_url": "fac67362e11293a673158e6d3c8c67693816868f",
  450. "img_logo_url": "6255f428036c011b325b40ebf1c53daa4db7e1f1",
  451. "has_community_visible_stats": true
  452. },
  453. {
  454. "appid": 71250,
  455. "name": "Sonic Adventure DX",
  456. "playtime_forever": 0,
  457. "img_icon_url": "6568d25b43e2d1d07fc16cbe3ac9278ca51c2fb3",
  458. "img_logo_url": "e8374c63e76724af4648cdea5331f4ae39af4d06",
  459. "has_community_visible_stats": true
  460. },
  461. {
  462. "appid": 71260,
  463. "name": "Space Channel 5: Part 2",
  464. "playtime_forever": 366,
  465. "img_icon_url": "82aec5f26e9d40c5275b1cd9bf692c4057c108ef",
  466. "img_logo_url": "fad43b313c2f6869c42bf0d7c4959363c5394d9a",
  467. "has_community_visible_stats": true
  468. },
  469. {
  470. "appid": 50650,
  471. "name": "Darksiders II",
  472. "playtime_forever": 1591,
  473. "img_icon_url": "a2d5549090144f1bfd9e00f1b460c1ad0aa9c366",
  474. "img_logo_url": "b0b8edfa57f332dc529c04b4dd2f5475227e71ac",
  475. "has_community_visible_stats": true
  476. },
  477. {
  478. "appid": 35720,
  479. "name": "Trine 2",
  480. "playtime_forever": 0,
  481. "img_icon_url": "061ecbbd7c70ae1c052377bad136c7759cbb708d",
  482. "img_logo_url": "7d7c3b93bd85ad1db2a07f6cca01a767069c6407",
  483. "has_community_visible_stats": true
  484. },
  485. {
  486. "appid": 226320,
  487. "name": "Marvel Heroes 2015",
  488. "playtime_forever": 0,
  489. "img_icon_url": "a0c1c35208af7b63759361305631da48539d45cc",
  490. "img_logo_url": "7121a66719963c4790d6169d38b9c65ad8f238bc",
  491. "has_community_visible_stats": true
  492. },
  493. {
  494. "appid": 225260,
  495. "name": "Brütal Legend",
  496. "playtime_forever": 0,
  497. "img_icon_url": "e3f25fba8538e5fb1ead751e767c2774df4fb0b4",
  498. "img_logo_url": "cc8b60ac1fa649c950ff7a9881b98709b8372f94",
  499. "has_community_visible_stats": true
  500. },
  501. {
  502. "appid": 210770,
  503. "name": "Sanctum 2",
  504. "playtime_forever": 0,
  505. "img_icon_url": "4cdfa1d19be460374a111b718ce3a204f21ea1dc",
  506. "img_logo_url": "333a8c65480bb85148bb3a185843a8520ae5d90f",
  507. "has_community_visible_stats": true
  508. },
  509. {
  510. "appid": 234710,
  511. "name": "Poker Night 2",
  512. "playtime_forever": 7,
  513. "img_icon_url": "b3073e6f089447a9cf1eeabf7579600061546322",
  514. "img_logo_url": "0b274bb5ade23104ce267a05ce7ac0f7aaa0248d",
  515. "has_community_visible_stats": true
  516. },
  517. {
  518. "appid": 31100,
  519. "name": "Wallace & Gromit Ep 1: Fright of the Bumblebees",
  520. "playtime_forever": 0,
  521. "img_icon_url": "1c8b457c265e36e6ac08d8d5ae5709124eae3025",
  522. "img_logo_url": "6b303e67e65d39cd3747ed21efb42de9ddb0d251"
  523. },
  524. {
  525. "appid": 31110,
  526. "name": "Wallace & Gromit Ep 2: The Last Resort",
  527. "playtime_forever": 0,
  528. "img_icon_url": "e6d415690e4c05b3d716030984346442f10e87e9",
  529. "img_logo_url": "7cda224cf65955e5e763ce8eff0b099add72f04e"
  530. },
  531. {
  532. "appid": 31120,
  533. "name": "Wallace & Gromit Ep 3: Muzzled!",
  534. "playtime_forever": 0,
  535. "img_icon_url": "70475b4d75934174a0fff9969315be9a4993c150",
  536. "img_logo_url": "3910a6ff5e48c5f7ed249b48387bc321504db73c"
  537. },
  538. {
  539. "appid": 31130,
  540. "name": "Wallace & Gromit Ep 4: The Bogey Man",
  541. "playtime_forever": 0,
  542. "img_icon_url": "9072b2096b4542529aa47f4115bff48ab781ff6e",
  543. "img_logo_url": "8a5313cf2bdd01a0516c56b3ce952428de85d430"
  544. },
  545. {
  546. "appid": 31220,
  547. "name": "Sam & Max 301: The Penal Zone",
  548. "playtime_forever": 335,
  549. "img_icon_url": "2c9c4ac6dfa50c4c479b6b436f04974a372588f7",
  550. "img_logo_url": "517196c999fe6316134332e749782154bde9adf5"
  551. },
  552. {
  553. "appid": 31230,
  554. "name": "Sam & Max 302: The Tomb of Sammun-Mak",
  555. "playtime_forever": 72,
  556. "img_icon_url": "e83fbb799f46b349586ca55fcf612350cc88ffe7",
  557. "img_logo_url": "517196c999fe6316134332e749782154bde9adf5"
  558. },
  559. {
  560. "appid": 31240,
  561. "name": "Sam & Max 303: They Stole Max's Brain!",
  562. "playtime_forever": 0,
  563. "img_icon_url": "bf1ebfe347a80e2ac31577e0569de3aa201cd17f",
  564. "img_logo_url": "517196c999fe6316134332e749782154bde9adf5"
  565. },
  566. {
  567. "appid": 31250,
  568. "name": "Sam & Max 304: Beyond the Alley of the Dolls",
  569. "playtime_forever": 0,
  570. "img_icon_url": "d4f834ac9d48cd59645f453d0cb30655dee6f629",
  571. "img_logo_url": "62ef5af2ce55bb787ff490126c110c41131043bc"
  572. },
  573. {
  574. "appid": 31260,
  575. "name": "Sam & Max 305: The City that Dares not Sleep",
  576. "playtime_forever": 0,
  577. "img_icon_url": "9e41c6d0c777cd0a7fb4e96da4f20d2227841725",
  578. "img_logo_url": "62ef5af2ce55bb787ff490126c110c41131043bc"
  579. },
  580. {
  581. "appid": 31270,
  582. "name": "Puzzle Agent",
  583. "playtime_forever": 0,
  584. "img_icon_url": "d0cae0b07b2512302968bd7625a9bf12cebdfba8",
  585. "img_logo_url": "f1bd7dd0bae1026b17c61a605a567ed68e683fef"
  586. },
  587. {
  588. "appid": 31280,
  589. "name": "Poker Night at the Inventory",
  590. "playtime_forever": 0,
  591. "img_icon_url": "7d50bd1f5e7cfe68397e9ca0041836ad18153dfb",
  592. "img_logo_url": "d962cde096bca06ee10d09880e9f3d6257941161",
  593. "has_community_visible_stats": true
  594. },
  595. {
  596. "appid": 31290,
  597. "name": "Back to the Future: Ep 1 - It's About Time",
  598. "playtime_forever": 0,
  599. "img_icon_url": "a9a9b1683209e3223779ad2315e4bf03e27619d7",
  600. "img_logo_url": "252a22c149c29a2d93fcb0080f3ee9d2dbbd9a2f"
  601. },
  602. {
  603. "appid": 94500,
  604. "name": "Back to the Future: Ep 2 - Get Tannen!",
  605. "playtime_forever": 0,
  606. "img_icon_url": "d5382aedd7594e088a078341034e4b369210ec9a",
  607. "img_logo_url": "ae0d863314d6111e6debaef7c9cdcf2940738b1e"
  608. },
  609. {
  610. "appid": 94510,
  611. "name": "Back to the Future: Ep 3 - Citizen Brown",
  612. "playtime_forever": 0,
  613. "img_icon_url": "a51c4795b44f689628bd76bc64cad310385ba1a2",
  614. "img_logo_url": "7fe46585ad7fbc8fedb38db7f8dd8608be5a46ee"
  615. },
  616. {
  617. "appid": 94520,
  618. "name": "Back to the Future: Ep 4 - Double Visions",
  619. "playtime_forever": 0,
  620. "img_icon_url": "5a7fd98c15742b9fca4e443b5eaadf953a6c83d3",
  621. "img_logo_url": "ac9fc7c15ae656d200299003ce22ab84185e54e4"
  622. },
  623. {
  624. "appid": 94530,
  625. "name": "Back to the Future: Ep 5 - OUTATIME",
  626. "playtime_forever": 0,
  627. "img_icon_url": "3d034831533383bc5a58787763925660684de8c4",
  628. "img_logo_url": "76361dfc1ef09dbb7f6572a6da7ab38a811f54af"
  629. },
  630. {
  631. "appid": 94590,
  632. "name": "Puzzle Agent 2",
  633. "playtime_forever": 0,
  634. "img_icon_url": "d558eb6bddeb55f5f145822f3949ab50bc02aff9",
  635. "img_logo_url": "b7aac2e076fb1c5178681e2cab0f8bae4380c96d",
  636. "has_community_visible_stats": true
  637. },
  638. {
  639. "appid": 94600,
  640. "name": "Hector: Ep 1",
  641. "playtime_forever": 0,
  642. "img_icon_url": "aa0a113e80b8cdeff47a523a87dd2fad1f43d73e",
  643. "img_logo_url": "fae3324a5c43647dda98be23bf1db4480c031273"
  644. },
  645. {
  646. "appid": 94610,
  647. "name": "Hector: Ep 2",
  648. "playtime_forever": 0,
  649. "img_icon_url": "0bfad503074efc1c46755d05d36be4755945f8fe",
  650. "img_logo_url": "52a3e61842a22bf75f6bf6d355400d5b3776f9b4"
  651. },
  652. {
  653. "appid": 94620,
  654. "name": "Hector: Ep 3",
  655. "playtime_forever": 0,
  656. "img_icon_url": "aa0a113e80b8cdeff47a523a87dd2fad1f43d73e",
  657. "img_logo_url": "97ec609986c7672a3928e7dca14d9aead4cbf65f"
  658. },
  659. {
  660. "appid": 236090,
  661. "name": "Dust: An Elysian Tail",
  662. "playtime_forever": 563,
  663. "img_icon_url": "3779535aba1ad565d504a7d52c6dd5c9eeb47fb2",
  664. "img_logo_url": "544fd60b00696d8c3402828da7055fea64d619ca",
  665. "has_community_visible_stats": true
  666. },
  667. {
  668. "appid": 229480,
  669. "name": "Dungeons & Dragons: Chronicles of Mystara",
  670. "playtime_forever": 91,
  671. "img_icon_url": "270699bf34b75a6789370de8b0cb98e163832f71",
  672. "img_logo_url": "cb7b16b064562469c375a22d9d07a7ab11abdab6",
  673. "has_community_visible_stats": true
  674. },
  675. {
  676. "appid": 208610,
  677. "name": "Skullgirls ∞Endless Beta∞",
  678. "playtime_forever": 292,
  679. "img_icon_url": "7bf859db736b8825045b0cc79acc4bb7be8cd7b9",
  680. "img_logo_url": "33974b81779c888b3b4d9c4b91d86ef0907b11f3",
  681. "has_community_visible_stats": true
  682. },
  683. {
  684. "appid": 237110,
  685. "name": "Mortal Kombat Komplete Edition",
  686. "playtime_forever": 365,
  687. "img_icon_url": "3b9c627b90f42cf650d5848e2fdd779fa4e6eb19",
  688. "img_logo_url": "307dc1eacffd54e5a7a02b663cec1c5105059811",
  689. "has_community_visible_stats": true
  690. },
  691. {
  692. "appid": 245170,
  693. "name": "Skullgirls",
  694. "playtime_forever": 1152,
  695. "img_icon_url": "7bf859db736b8825045b0cc79acc4bb7be8cd7b9",
  696. "img_logo_url": "ca3f7bd4fbb3cf73855ebce91b6dafc2104d651b",
  697. "has_community_visible_stats": true
  698. },
  699. {
  700. "appid": 222940,
  701. "name": "THE KING OF FIGHTERS XIII STEAM EDITION",
  702. "playtime_forever": 322,
  703. "img_icon_url": "de8d9bf86ae8983464d69743b55cef3992330ccf",
  704. "img_logo_url": "9f2bec35f18bfc1a80ffab64bc51a09a880343b6",
  705. "has_community_visible_stats": true
  706. },
  707. {
  708. "appid": 250760,
  709. "name": "Shovel Knight",
  710. "playtime_forever": 1,
  711. "img_icon_url": "9b8866653bcaf20db1424653df8560205939cdba",
  712. "img_logo_url": "23fca16e3df2ed731136574b320988406eb0f712",
  713. "has_community_visible_stats": true
  714. },
  715. {
  716. "appid": 250900,
  717. "name": "The Binding of Isaac: Rebirth",
  718. "playtime_forever": 95,
  719. "img_icon_url": "16d46c8630499bfc54d20745ac90786a302cd643",
  720. "img_logo_url": "c7a76988c53e7f3a3aa1cf224aaf4dbd067ebbf9",
  721. "has_community_visible_stats": true
  722. },
  723. {
  724. "appid": 111900,
  725. "name": "Guardians of Middle-earth",
  726. "playtime_forever": 0,
  727. "img_icon_url": "5ab636ac90b8476892d6e0ae377624d5b934f600",
  728. "img_logo_url": "08a7116bebd1bf44bb8e86495358dca14224d223",
  729. "has_community_visible_stats": true
  730. },
  731. {
  732. "appid": 234670,
  733. "name": "NARUTO SHIPPUDEN: Ultimate Ninja STORM 3 Full Burst",
  734. "playtime_forever": 1405,
  735. "img_icon_url": "ddd956cc6ec3370449f96298653d4119c5666fff",
  736. "img_logo_url": "12895039c12ec92be72faa2d13acb88886b8cb97",
  737. "has_community_visible_stats": true
  738. },
  739. {
  740. "appid": 42910,
  741. "name": "Magicka",
  742. "playtime_forever": 0,
  743. "img_icon_url": "0eb97d0cd644ee08b1339d2160c7a6adf2ea0a65",
  744. "img_logo_url": "8c59c674ef40f59c3bafde8ff0d59b7994c66477",
  745. "has_community_visible_stats": true
  746. },
  747. {
  748. "appid": 212480,
  749. "name": "Sonic & All-Stars Racing Transformed",
  750. "playtime_forever": 0,
  751. "img_icon_url": "95767af7b08d7ecebf1e9cb1ed1c92c98e4c084f",
  752. "img_logo_url": "351603b89e1863831c84aacab7bf3a315f03443b",
  753. "has_community_visible_stats": true
  754. },
  755. {
  756. "appid": 261640,
  757. "name": "Borderlands: The Pre-Sequel",
  758. "playtime_2weeks": 838,
  759. "playtime_forever": 1157,
  760. "img_icon_url": "af5ef05eac8b1eb618e4f57354ac7b3e918ab1bd",
  761. "img_logo_url": "df64c72fd335a03dbcc0a19b1f81acc8db1b94ba",
  762. "has_community_visible_stats": true
  763. },
  764. {
  765. "appid": 39150,
  766. "name": "FINAL FANTASY VIII",
  767. "playtime_forever": 119,
  768. "img_icon_url": "e2b0371cd72160603e7ecaaf95b238a46ba254e6",
  769. "img_logo_url": "0c912769e975586cdcfe4a6b008d538f1f96a032",
  770. "has_community_visible_stats": true
  771. },
  772. {
  773. "appid": 235460,
  774. "name": "METAL GEAR RISING: REVENGEANCE",
  775. "playtime_forever": 1268,
  776. "img_icon_url": "ad0f84fe48b57f3861b6c6d743f26b98d670c21f",
  777. "img_logo_url": "a21384421dafa03783e3672a5f4754f70e63235e",
  778. "has_community_visible_stats": true
  779. },
  780. {
  781. "appid": 550,
  782. "name": "Left 4 Dead 2",
  783. "playtime_forever": 0,
  784. "img_icon_url": "7d5a243f9500d2f8467312822f8af2a2928777ed",
  785. "img_logo_url": "205863cc21e751a576d6fff851984b3170684142",
  786. "has_community_visible_stats": true
  787. },
  788. {
  789. "appid": 236430,
  790. "name": "DARK SOULS™ II",
  791. "playtime_forever": 8872,
  792. "img_icon_url": "8d5b3da903efb047d4efb670c08714a4d1071e83",
  793. "img_logo_url": "d16871e0aa9196e5e7d865f76fbed278a0309e85",
  794. "has_community_visible_stats": true
  795. },
  796. {
  797. "appid": 282900,
  798. "name": "Hyperdimension Neptunia Re;Birth1",
  799. "playtime_forever": 1647,
  800. "img_icon_url": "0cd228210df4f44ef8e77f62b18d1a9af81a72d4",
  801. "img_logo_url": "c2835cfa39dbaf8e7e1f668e4bf491855a274947",
  802. "has_community_visible_stats": true
  803. },
  804. {
  805. "appid": 254700,
  806. "name": "resident evil 4 / biohazard 4",
  807. "playtime_forever": 737,
  808. "img_icon_url": "535bfea3332662271f1e3a972832bc0b4aba5a38",
  809. "img_logo_url": "532d72710af44f29cc123c5796e95e0382461ee5",
  810. "has_community_visible_stats": true
  811. },
  812. {
  813. "appid": 231430,
  814. "name": "Company of Heroes 2",
  815. "playtime_forever": 0,
  816. "img_icon_url": "9efafff369d37ea19c44139de4476e6c63319b6b",
  817. "img_logo_url": "2c413e4cc731862e0b3307ed9c23b1cd20087130",
  818. "has_community_visible_stats": true
  819. },
  820. {
  821. "appid": 317170,
  822. "name": "Company of Heroes 2 - Beta",
  823. "playtime_forever": 0,
  824. "img_icon_url": "9efafff369d37ea19c44139de4476e6c63319b6b",
  825. "img_logo_url": "62afc50b5f0970c1070951f56a7dd0c0b943b013",
  826. "has_community_visible_stats": true
  827. },
  828. {
  829. "appid": 294810,
  830. "name": "BlazBlue: Continuum Shift Extend",
  831. "playtime_forever": 82,
  832. "img_icon_url": "244644a6721480f40e4de61e4bb7a337d999e435",
  833. "img_logo_url": "b7105e9443e1f3bed7bb3fd1599a140e75dcf2c6",
  834. "has_community_visible_stats": true
  835. },
  836. {
  837. "appid": 294860,
  838. "name": "Valkyria Chronicles™",
  839. "playtime_forever": 65,
  840. "img_icon_url": "176c6dcafc9bf0fbb87f9adeb224df88c8248a66",
  841. "img_logo_url": "08316e1d6a45d8e13de7f5e1a1480cf4efff15cf",
  842. "has_community_visible_stats": true
  843. },
  844. {
  845. "appid": 285440,
  846. "name": "Crimzon Clover WORLD IGNITION",
  847. "playtime_forever": 8,
  848. "img_icon_url": "8f4f6490c9b48e8d6e2b688c4a097f9bdd8fb56d",
  849. "img_logo_url": "72ab0aac6800b9ec9f79571d6f425f0e687d04ca",
  850. "has_community_visible_stats": true
  851. },
  852. {
  853. "appid": 314030,
  854. "name": "Guilty Gear X2 #Reload",
  855. "playtime_forever": 99,
  856. "img_icon_url": "bde7b6e8d891b310fad62d25a0cf009c979db84c",
  857. "img_logo_url": "94edca39fa971bc8beeb0066afc99993246a9976"
  858. },
  859. {
  860. "appid": 206420,
  861. "name": "Saints Row IV",
  862. "playtime_forever": 205,
  863. "img_icon_url": "b5e8448a3e2ea31ddf3595addae4e1eee2375c0d",
  864. "img_logo_url": "49d796621c286130a8ddeea918d9aae8c8441455",
  865. "has_community_visible_stats": true
  866. },
  867. {
  868. "appid": 21690,
  869. "name": "Resident Evil 5 / Biohazard 5",
  870. "playtime_forever": 782,
  871. "img_icon_url": "26108f5caff3638c9f522dd79ee84a12761f373a",
  872. "img_logo_url": "e277ab70fff98bb2300a39bf8e2371a746fe50b1",
  873. "has_community_visible_stats": true
  874. },
  875. {
  876. "appid": 222480,
  877. "name": "Resident Evil Revelations / Biohazard Revelations UE",
  878. "playtime_forever": 476,
  879. "img_icon_url": "5725845fe83f846a04135034c5be55aef008c725",
  880. "img_logo_url": "cf242207e0e06251f55baf2f89c37ded12c79329",
  881. "has_community_visible_stats": true
  882. },
  883. {
  884. "appid": 323470,
  885. "name": "DRAGON BALL XENOVERSE",
  886. "playtime_2weeks": 24,
  887. "playtime_forever": 815,
  888. "img_icon_url": "810b2bab6e3197b5d63d3abffcebafaac8dc6312",
  889. "img_logo_url": "f8724eeddf94534d66b8057cf770a9cd8318a14a",
  890. "has_community_visible_stats": true
  891. },
  892. {
  893. "appid": 730,
  894. "name": "Counter-Strike: Global Offensive",
  895. "playtime_forever": 62,
  896. "img_icon_url": "69f7ebe2735c366c65c0b33dae00e12dc40edbe4",
  897. "img_logo_url": "d0595ff02f5c79fd19b06f4d6165c3fda2372820",
  898. "has_community_visible_stats": true
  899. },
  900. {
  901. "appid": 222440,
  902. "name": "THE KING OF FIGHTERS 2002 UNLIMITED MATCH",
  903. "playtime_2weeks": 1,
  904. "playtime_forever": 1,
  905. "img_icon_url": "c9235efbfa66ad95a6ece092a7860ca8b92cfa6f",
  906. "img_logo_url": "787a8b76a5c9348784f50798403b2672e488c557",
  907. "has_community_visible_stats": true
  908. },
  909. {
  910. "appid": 247000,
  911. "name": "Talisman: Digital Edition",
  912. "playtime_forever": 0,
  913. "img_icon_url": "ab50e24b04d5fa8faf219fe622199061b57bcf20",
  914. "img_logo_url": "73b7daee45a29a5dfe5c0efef72223943bf8722f",
  915. "has_community_visible_stats": true
  916. }]
  917. self.assertEqual(gamesPulling(steamnum,APIKEY),jsonList)