Example #1
0
 def test_console_lookup(self):
     """
     Console lookup should do a few things:
     
     1) It should return the object from supported_consoles
     2) It should return the same instance every time
     3) It should return None when the console of that name is not found
     """
     # 1
     self.assertTrue(console_lookup("GBA") in supported_consoles)
     # 2
     self.assertEqual(console_lookup("GBA"),gba)
     self.assertEqual(console_lookup("GBA"),gba)
     # 3
     self.assertTrue(console_lookup("Random String") == None)
Example #2
0
 def test_console_lookup(self):
     """
     Console lookup should do a few things:
     
     1) It should return the object from supported_consoles
     2) It should return the same instance every time
     3) It should return None when the console of that name is not found
     """
     # 1
     self.assertTrue(console_lookup("GBA") in supported_consoles)
     # 2
     self.assertEqual(console_lookup("GBA"), gba)
     self.assertEqual(console_lookup("GBA"), gba)
     # 3
     self.assertTrue(console_lookup("Random String") == None)
Example #3
0
 def setUp(self):
     gba = console_lookup("GBA")
     self.roms_console = gba
     self.rom = ROM("/Users/scottrice/ROMs/GBA/Pokemon Emerald.gba", gba)
     self.noext_rom = ROM("/Users/scottrice/ROMs/GBA/Pokemon Emerald", gba)
Example #4
0
 def setUp(self):
     gba = console_lookup("GBA")
     self.roms_console = gba
     self.rom = ROM("/Users/scottrice/ROMs/GBA/Pokemon Emerald.gba",gba)
     self.noext_rom = ROM("/Users/scottrice/ROMs/GBA/Pokemon Emerald",gba)