class TestROMLoading(TestROM): """Test loading ROM into memory""" def setUp(self): super(TestROMLoading, self).setUp() self.mem = Memory(self.rom.data) def test_len(self): self.assertEqual(len(self.mem), len(self.rom.data) ) def test_rom_load(self): self.assertEqual(self.mem.tostring(), self.rom.data.tostring() )
def setUp(self): super(TestROMLoading, self).setUp() self.mem = Memory(self.rom.data)