def test_noe(self): game: SwitchGame = noe.game_info(nsuid="70010000006441") self.assertEqual("Celeste", str(game)) self.assertEqual("70010000006441", game.nsuid) self.assertEqual("ACF3", game.unique_id) self.assertEqual("Matt Makes Games Inc.", game.developer) self.assertEqual("Matt Makes Games Inc.", game.publisher) self.assertEqual("EU", game.region) self.assertEqual("Nintendo Switch", game.platform) self.assertEqual(2018, game.release_date.year) self.assertEqual(1, game.release_date.month) self.assertEqual(25, game.release_date.day) self.assertEqual(2, len(game.genres)) self.assertEqual(10, len(game.languages)) self.assertEqual(1, game.players) self.assertEqual("https://ec.nintendo.com/GB/en/titles/70010000006441", game.url(country="GB")) self.assertEqual("https://ec.nintendo.com/IT/it/titles/70010000006441", game.url(country="IT", lang="it")) self.assertFalse(game.demo) self.assertFalse(game.dlc) self.assertFalse(game.game_vouchers) self.assertFalse(game.nso_required) self.assertTrue(game.save_data_cloud)
def test_game_info_3ds(self): game = noe.game_info("50010000024975") self.assertEqual(game.platform, Platforms.NINTENDO_3DS) self.assertEqual(game.region, Regions.EU) self.assertEqual(game.title, "Super Smash Bros. for Nintendo 3DS") self.assertEqual(game.nsuid, "50010000024975") self.assertEqual(game.unique_id, "AXC") self.assertEqual( game.slug, "/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" ) self.assertEqual(game.players, 4) self.assertFalse(game.free_to_play) self.assertEqual(game.rating, (Ratings.PEGI, 12)) self.assertEqual(game.release_date.year, 2014) self.assertEqual(game.release_date.month, 10) self.assertEqual(game.release_date.day, 3) self.assertIn("Nintendo", game.publishers) self.assertEqual(game.features.get(Features.AMIIBO), True) self.assertEqual(game.features.get(Features.DEMO), True) self.assertEqual(game.features.get(Features.DLC), True) self.assertEqual( game.eshop.at_de, "https://www.nintendo.at/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" ) self.assertEqual( game.eshop.be_fr, "https://www.nintendo.be/fr/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" ) self.assertEqual( game.eshop.be_nl, "https://www.nintendo.be/nl/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" ) self.assertEqual( game.eshop.ch_de, "https://www.nintendo.ch/de/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" ) self.assertEqual( game.eshop.ch_fr, "https://www.nintendo.ch/fr/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" ) self.assertEqual( game.eshop.ch_it, "https://www.nintendo.ch/it/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html" )
def test_game_info_wiiu(self): game = noe.game_info("20010000010926") self.assertEqual(game.platform, Platforms.NINTENDO_WIIU) self.assertEqual(game.region, Regions.EU) self.assertEqual(game.title, "Super Smash Bros. for Wii U") self.assertEqual(game.nsuid, "20010000010926") self.assertEqual(game.unique_id, "AXF") self.assertEqual( game.slug, "/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html") self.assertEqual(game.players, 8) self.assertFalse(game.free_to_play) self.assertEqual(game.rating, (Ratings.PEGI, 12)) self.assertEqual(game.release_date.year, 2014) self.assertEqual(game.release_date.month, 11) self.assertEqual(game.release_date.day, 28) self.assertIn("Nintendo", game.publishers) self.assertEqual(game.features.get(Features.AMIIBO), True) self.assertEqual(game.features.get(Features.DEMO), False) self.assertEqual(game.features.get(Features.DLC), True) self.assertEqual( game.eshop.de_de, "https://www.nintendo.de/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html" ) self.assertEqual( game.eshop.es_es, "https://www.nintendo.es/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html" ) self.assertEqual( game.eshop.fr_fr, "https://www.nintendo.fr/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html" ) self.assertEqual( game.eshop.it_it, "https://www.nintendo.it/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html" ) self.assertEqual( game.eshop.nl_nl, "https://www.nintendo.nl/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html" ) self.assertEqual( game.eshop.pt_pt, "https://www.nintendo.pt/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html" )
def test_game_info_switch(self): game = noe.game_info("70010000012331") self.assertEqual(game.platform, Platforms.NINTENDO_SWITCH) self.assertEqual(game.region, Regions.EU) self.assertEqual(game.title, "Super Smash Bros. Ultimate") self.assertEqual(game.nsuid, "70010000012331") self.assertEqual(game.unique_id, "AAAB") self.assertEqual( game.slug, "/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html") self.assertEqual(game.players, 8) self.assertFalse(game.free_to_play) self.assertEqual(game.rating, (Ratings.PEGI, 12)) self.assertEqual(game.release_date.year, 2018) self.assertEqual(game.release_date.month, 12) self.assertEqual(game.release_date.day, 7) self.assertIn("Nintendo", game.publishers) self.assertEqual(game.features.get(Features.AMIIBO), True) self.assertEqual(game.features.get(Features.DEMO), False) self.assertEqual(game.features.get(Features.DLC), True) self.assertEqual(game.features.get(Features.NSO_REQUIRED), True) self.assertEqual(game.features.get(Features.SAVE_DATA_CLOUD), True) self.assertEqual(game.features.get(Features.VOICE_CHAT), True) self.assertEqual( game.eshop.ru_ru, "https://www.nintendo.ru/-/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html" ) self.assertEqual( game.eshop.uk_en, "https://www.nintendo.co.uk/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html" ) self.assertEqual( game.eshop.za_en, "https://www.nintendo.co.za/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html" ) self.assertEqual( game.eshop.au_en, "https://ec.nintendo.com/AU/en/titles/70010000012331") self.assertEqual( game.eshop.nz_en, "https://ec.nintendo.com/NZ/en/titles/70010000012331")
def test_game_info_switch(self): game: SwitchGame = noe.game_info(nsuid="70010000012331") self.assertEqual("Super Smash Bros. Ultimate", game.title) self.assertEqual( "/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html", game.slug) self.assertEqual("70010000012331", game.nsuid) self.assertEqual("AAAB", game.unique_id) self.assertEqual("EU", game.region) self.assertEqual("Nintendo Switch", game.platform) self.assertEqual("Nintendo / Sora Ltd. / BANDAI NAMCO Studios Inc.", game.developer) self.assertEqual("Nintendo", game.publisher) self.assertEqual(2018, game.release_date.year) self.assertEqual(12, game.release_date.month) self.assertEqual(7, game.release_date.day) self.assertIn( "a new entry in the Super Smash Bros. series for Nintendo Switch!", game.description) self.assertEqual(["Action", "Fighting"], game.genres) self.assertEqual([ "Chinese", "Dutch", "English", "French", "German", "Italian", "Japanese", "Korean", "Russian", "Spanish" ], game.languages) self.assertEqual(8, game.players) self.assertEqual(15869, game.megabytes) self.assertTrue(game.amiibo) self.assertFalse(game.demo) self.assertTrue(game.dlc) self.assertFalse(game.free_to_play) self.assertFalse(game.game_vouchers) self.assertFalse(game.local_multiplayer) self.assertTrue(game.nso_required) self.assertTrue(game.save_data_cloud)
def test_noe(self): game: N3dsGame = noe.game_info(nsuid="50010000041437") self.assertEqual("Rhythm Paradise Megamix", str(game)) self.assertEqual("50010000041437", game.nsuid) self.assertEqual("BPJ", game.unique_id) self.assertIsNone(game.developer) self.assertEqual("Nintendo", game.publisher) self.assertEqual("EU", game.region) self.assertEqual("Nintendo 3DS", game.platform) self.assertEqual(2016, game.release_date.year) self.assertEqual(10, game.release_date.month) self.assertEqual(21, game.release_date.day) self.assertEqual(1, len(game.genres)) self.assertEqual(4, game.players) self.assertEqual( "https://www.nintendo.co.uk/en/Games/Nintendo-3DS/Rhythm-Paradise-Megamix-1091313.html", game.url(country="GB")) self.assertEqual( "https://www.nintendo.co.za/en/Games/Nintendo-3DS/Rhythm-Paradise-Megamix-1091313.html", game.url(country="ZA")) self.assertEqual( "https://www.nintendo.it/it/Games/Nintendo-3DS/Rhythm-Paradise-Megamix-1091313.html", game.url(country="IT", lang="it")) self.assertTrue(game.demo) self.assertFalse(game.dlc) self.assertTrue(game.street_pass) self.assertFalse(game.virtual_console)
def test_game_info_n3ds(self): game: N3dsGame = noe.game_info(nsuid="50010000024975") self.assertEqual("Super Smash Bros. for Nintendo 3DS", game.title) self.assertEqual( "/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html", game.slug) self.assertEqual("50010000024975", game.nsuid) self.assertEqual("AXC", game.unique_id) self.assertEqual("Nintendo", game.publisher) self.assertEqual("EU", game.region) self.assertEqual("Nintendo 3DS", game.platform) self.assertEqual(2014, game.release_date.year) self.assertEqual(10, game.release_date.month) self.assertEqual(3, game.release_date.day) # self.assertIn( # "Super Smash Bros. for Nintendo 3DS is truly a clash for the ages!", # game.description, # ) self.assertEqual(["Action", "Fighting"], game.genres) self.assertEqual(4, game.players) self.assertEqual(1371, game.megabytes) self.assertTrue(game.amiibo) self.assertTrue(game.demo) self.assertFalse(game.dlc) self.assertFalse(game.free_to_play) self.assertTrue(game.street_pass) self.assertFalse(game.virtual_console)
from nintendeals import noe as nin for game in nin.list_games("Nintendo Switch"): print(game.nsuid) all_info = nin.game_info(game.nsuid) if all_info: print(all_info.title)
def test_game_info_non_existant(self): game = noe.game_info("60010000000000") self.assertIsNone(game)
def test_noe(self, nsuid, title, checker): game = noe.game_info(nsuid) self.assertEqual(title, game.title) checker(self, game)