def test_set_part(self):
     game_file = GameFile('Test(Part5).tap')
     game_file.setPart('Test(Part5).tap')
     self.assertEqual(game_file.part, 5)
     game_file = GameFile(
         'tosec\fikus-pikus\renamed\Compilations\Demos\[TRD]\Fikus Pikus Demos (19xx)(Flash)(Disk 5 of 140).trd'
     )
     self.assertEqual(game_file.getType(), 'Compilations\\Demos')
     self.assertEqual(game_file.part, 5)
     game_file = GameFile(
         'tosec\fikus-pikus\renamed\Compilations\Demos\[TRD]\Fikus Pikus Demos (19xx)(Flash)(Disk 101 of 140).trd'
     )
     self.assertEqual(game_file.getType(), 'Compilations\\Demos')
     self.assertEqual(game_file.part, 101)
 def test_game_type(self):
     game_file = GameFile(
         'Sinclair ZX Spectrum\Applications\[TZX]\MGT Plus D - System Tape (1987)(Miles Gordon Technology).tzx'
     )
     game_file.game.genre = 'Hardware - Disk'
     self.assertEqual(game_file.getType(), 'Applications')
     game_file = GameFile(
         'Sinclair ZX Spectrum\Games\[ROM]\Shadow of the Unicorn ROM Loader (2001)(Ross, Fraser)(GB).rom'
     )
     self.assertEqual(game_file.getType(), 'Games')
     game_file = GameFile(
         'C:\ZX Pokemaster\\tosec\\reviewed files\\CSSCGC Games Reviewed\\1997\\Advanced Advocacy Simulator (1997)(Jolly, Derek)[CSSCGC].sna'
     )
     self.assertEqual(game_file.getTOSECDatName(),
                      'Sinclair ZX Spectrum - Games - [SNA]')
     self.assertEqual(game_file.game.getGenre(), 'Various Games')
     self.assertEqual(game_file.getType(), 'Games')