Пример #1
0
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() )
Пример #2
0
 def setUp(self):
     super(TestROMLoading, self).setUp()
     self.mem = Memory(self.rom.data)