def test_strip_name_if_no_mod_flags(self):
     pattern = '{GameName} ({Year}) ({Publisher}) ({MachineType}) {ModFlags}'
     game_file = GameFile('Game (19xx)(-).tap')
     output_name = game_file.getOutputName(pattern)
     self.assertEqual(output_name, 'Game (19xx) (-).tap')
     game_file = GameFile('Game (19xx)(-)[m].tap')
     output_name = game_file.getOutputName(pattern)
     self.assertEqual(output_name, 'Game (19xx) (-) [m].tap')
 def test_duplicate_spaces(self):
     game_file = GameFile('Format  Utility (1994)(MI & DI  Software).trd')
     out_name = game_file.getOutputName()
     self.assertEqual(out_name, 'Format Utility (1994)(MI & DI).trd')