def executables_directory(self): """ Should return a directory with a decent name for each emulator, such as C:\Users\Scott\Documents\ROMs\N64 or C:\Users\Scott\Documents\ROMs\PS2 """ return os.path.join(filesystem_helper.executables_directory(),self.shortname)
def test_executables_directory(self): """ The executables directory for a console should be a directory located in the main executables directory, and the consoles directory should be named the same as the shortname of the console """ gba_dir = self.console.executables_directory() self.assertEqual(os.path.dirname(gba_dir),filesystem_helper.executables_directory()) self.assertEqual(os.path.basename(gba_dir),self.console.shortname)
def executables_directory(self): """ Should return a directory with a decent name for each emulator, such as C:\Users\Scott\Documents\ROMs\N64 or C:\Users\Scott\Documents\ROMs\PS2 """ return os.path.join(filesystem_helper.executables_directory(), self.shortname)
def test_executables_directory(self): """ The executables directory for a console should be a directory located in the main executables directory, and the consoles directory should be named the same as the shortname of the console """ gba_dir = self.console.executables_directory() self.assertEqual(os.path.dirname(gba_dir), filesystem_helper.executables_directory()) self.assertEqual(os.path.basename(gba_dir), self.console.shortname)