def test_getting_info_from_tosec_name(self):
     file = GameFile('Gonzzalezz (1989)(Opera Soft)(es)(Side B).tap')
     self.assertEqual(file.game.name, 'Gonzzalezz')
     self.assertEqual(file.game.getYear(), '1989')
     self.assertEqual(file.game.getPublisher(), 'Opera Soft')
     self.assertEqual(file.getLanguage(), 'es')
     self.assertEqual(file.getSide(), 'Side B')
     file = GameFile('Gonzzalezz.tap')
     self.assertEqual(file.game.name, 'Gonzzalezz')
 def test_language_detection(self):
     game_file = GameFile('Three Octopuses (2017)(kas29)(RU).tap')
     self.assertEqual(game_file.getLanguage(), 'ru')
 def test_bilinguic_file(self):
     game_file = GameFile('Game (19xx)(-)(en-es).tap')
     language = game_file.getLanguage()
     self.assertEqual(language, 'en-es')