def test_setupgroup_app(self): a = app('com.setupgroup.xo.free') self.assertEqual(a['title'], 'XO Demo') self.assertEqual(a['category'], 'Puzzle') self.assertEqual(a['developer_name'], 'Setup Group') self.assertEqual(a['developer_email'], '*****@*****.**') self.assertEqual(a['developer_website'], 'http://wwww.setupgroup.com')
def test_pressmatrix(self): a = app('com.pressmatrix.cimmagazine') self.assertEqual(a['title'], 'CIM Kiosk') self.assertEqual(a['category'], 'News & Magazines') self.assertEqual(a['developer_name'], 'DVV Media Group GmbH') self.assertIsInstance(a['images'], list) self.assertNotEqual(len(a['images']), 14) self.assertEqual(a['developer_email'], '') self.assertEqual(len(a['similar']), 1) self.assertEqual(a['developer_website'], 'http://www.cimunity.com/home/')
def test_app_info(self): a = app('com.twitter.android') self.assertIsInstance(a, dict) self.assertEqual(a['title'], 'Twitter') self.assertEqual(a['package_name'], 'com.twitter.android') self.assertEqual(a['developer_name'], 'Twitter, Inc.') self.assertEqual(a['category'], 'Social') self.assertEqual(a['price'], '0') self.assertEqual(a['developer_website'], 'https://support.twitter.com/articles/20169915') self.assertEqual(a['developer_email'], '*****@*****.**') self.assertEqual(a['url'], 'https://play.google.com/store/apps/details?id=com.twitter.android&hl=en') self.assertNotEqual(len(a['images']), 0) self.assertNotEqual(len(a['similar']), 0)
def test_images_test(self): a = app('kaus.mmautotrader.com') self.assertIsInstance(a['images'], list) self.assertNotEqual(len(a['images']), 0)
def test_numDownloads_problem(self): a = app('com.wHow2Makeapanelmould') self.assertIsInstance(a, dict)
def test_not_found_app(self): a = app('google.super.app') self.assertIsNone(a)
def test_images_test(self): a = app('com.instagram.android') self.assertIsInstance(a['images'], list) self.assertNotEqual(len(a['images']), 0)